Event Fun

  • Daniel Pozmanter

    I decided to get 3.10.1 out, since the bugs were a bit nasty.

    However I ran into an interesting problem.

    Open the source browser.

    Now close it.

    Now change files.

    Notice a problem?

    Seems the event persists even after the sourcebrowser is toast.

    I am looking into messing about with UnBind, (which would require wxPython 2.5.2.x or higher).

    I may need to also add some kind of id bit to the plugin events.

    As no plugins are currently using this, this shouldn't be too large of a problem.  (If you've already started, apologies).

    • Franz Steinhaeusler

      Indeed strange.
      closing with togglepanel works. (view=>Toggle Source browser)

    • Daniel Pozmanter

      The problem is that when you destroy a panel, the event is STILL bound.

      So, how do you fix this?

      You need a way to unbind without removing all events bound to that control.

      So I wrote some utility functions:

      and DrFrame.PUnbind.

      These seem to do the job.
      (Details in the plugins documentation).


Log in to post a comment.