Skip to content

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

Open

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

  1. Claybarn commented on May 21, 2020

    @Claybarn
    Collaborator

    I am fairly sure we fixed that problem. I wonder if the branch you are using never saw those changes.

  2. samuelgarcia commented on May 22, 2020

    @samuelgarcia
    Author

    One more argument to merge cmake_build in to master :)

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