Skip to content

How to to aware that a python is being deleted in the GUI #28

Description

@samuelgarcia

I have PythonPlugin that launch a thread in the background.
When I want to delete it from main GUI openephys just crash.
This is because the thread is not stoped properly.

So I would need a claabck in the python be aware the pulgin is about be deleted and so I could stop the thread and close socket and opened file properly.
What is the way to that ?
Is there a callback at C++ API for that that could be propagated in python ? (question1)

I tried the __del__ but it do not work...
Is the plugin python instance is deleted properly by the python interpreter ? (question2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions