Platform -
Windows 2000, Python 2.2.2, wxPython 2.4.0.2u
Scenario -
I have a panel with various text controls and various buttons.
One of the buttons is the default button.
The user moves to one of the text controls, makes some changes, and presses
Enter.
Problem -
Control is correctly passed to the default button.
BUT
I am not picking up a Lost Focus event on the text control that had focus at
the time.
If the user clicks on the default button, I do get the Lost Focus event.
Any advice will be much appreciated.
BTW, I sometimes see a reply that says "Please submit a bug report". If this
is a bug, please advise on how one submits a bug report.
Platform -
Windows 2000, Python 2.2.2, wxPython 2.4.0.2u
Scenario -
I have a panel with various text controls and various buttons.
One of the buttons is the default button.
The user moves to one of the text controls, makes some changes, and presses
Enter.
Problem -
Control is correctly passed to the default button.
BUT
I am not picking up a Lost Focus event on the text control that had focus at
the time.
Because the focus is not changing, only the event for the defult button is being sent.
If the user clicks on the default button, I do get the Lost Focus event.
Because the focus changes.
Any advice will be much appreciated.
Your event handler for the default button could do something like self.SetFocus() to change the focus to itself...
BTW, I sometimes see a reply that says "Please submit a bug report". If this
is a bug, please advise on how one submits a bug report.
There is a "Report a bug" link on the wxpython website that leads to the wxWindows project page at Sourceforge.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!