Event Fun

Developers
2005-02-11
2013-04-26
  • 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).

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

       
    • 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:

      DrFrame.PBind
      and DrFrame.PUnbind.

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