In wxDialog2, when I have focus in wxTextCtrl and press
Enter, focus moves to wxChoice. This is normal.
But when I press Enter in wxChoice, wxDialog1 is strangely closed...
Is this normal behavior or some bug?
Sounds like a bug. Looks like the combobox is generating an event that since the Ok button is disabled is being sent to the parent dialog, causing it to think that it has been completed. Please enter a bug report about this. In the meantime you can work around this issue by making the second dialog also be a child of the frame, instead of the first dialog.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Yes, I found it. This bug was reported in wxWindows as #755910.
It is assigned to nobody with priority 5
Stano.
Robin Dunn wrote:
···
Stano Paska wrote:
Hi,
I have some code like this (see appended file).
In wxDialog2, when I have focus in wxTextCtrl and press
Enter, focus moves to wxChoice. This is normal.
But when I press Enter in wxChoice, wxDialog1 is strangely closed...
Is this normal behavior or some bug?
Sounds like a bug. Looks like the combobox is generating an event that since the Ok button is disabled is being sent to the parent dialog, causing it to think that it has been completed. Please enter a bug report about this. In the meantime you can work around this issue by making the second dialog also be a child of the frame, instead of the first dialog.