[wxpython-users] Binding to a single control
Raffaello Barella
barbarossa.platz at gmail.com
Sun Mar 30 23:08:24 PDT 2008
There must be something else, even if I do not understand what. In Window XP
I checked the application that did not work with PythonWin , that allows
breakpoints, and saw that the program never passed through the handler. Then
I just switched the binding from the control to the frame, nothing else, and
now the application runs smoothly.
I shall work more on it, and if I discover the mistake (or the bug) I shall
inform you.
2008/3/31, Robin Dunn <robin at alldunn.com>:
>
> Raffaello Barella wrote:
> > Is there a limit to the number of bindings we can make not to the frame
> > but to the single control?
> >
> > To explain the sense of my question, I subclassed a wx.ComboBox, and
> > inside the class there's a self.Bind(wx.EVT_COMBOBOX...).
> > When using this subclass in an application, I put another
> > myCombo.Bind(wx.EVT_COMBOBOX...), and the binding did not work.
> > I replaced the second binding with a self.Bind(wx.EVT_COMBOBOX,
> > self.OnEVT_COMBOBOX, myCombo) and now it works.
>
>
> There is no limit, but by default the search for an event handler stops
> when a handler is found. To tell the event system to keep looking, you
> just need to call event.Skip in the handler(s) that do get called.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
31/7f61d4ec/attachment-0001.htm
More information about the wxpython-users
mailing list