[wxPython-users] TextCtrl eating all events when empty in MS
Windows
Robin Dunn
robin at alldunn.com
Thu Mar 1 10:20:19 PST 2007
Sid Wiesner wrote:
> Hi,
>
> I bind several events to my main Window, and they work great when I'm
> not using TextCtrls.
>
> self.Bind(wx.EVT_CHAR, self.onKeyPress)
> self.Bind(wx.EVT_TEXT_ENTER, self.onReturn)
> self.Bind(wx.EVT_TEXT, self.onTextCtrlChange)
>
> When I create a wx.TextCtrl and press any normal character, the bindings
> still perform correctly. But when the TextCtrl is empty and I press the
> DELETE button, any F1-F12 buttons, UP, DOWN, etc, no events are passed
> through when using MS Windows. The same code works fine on Mac OS X.
>
> Any ideas why there would be a difference?
Please create a small runnable sample that shows the problem so we can
see exactly what you are trying to do.
http://wiki.wxpython.org/index.cgi/MakingSampleApps
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list