It is rather bizarre, I don't see what is wrong either. It appears that something is blocking the ESC key handler and also clicking on the close button in the caption bar. But adding a wx.ID_CANCEL button does close the dialog when it is clicked...
···
On 7/31/11 3:14 AM, werner wrote:
When one runs the ErrorDialog demo the is locked, i.e. have to kill it
as I can't close the ErrorDialog nor the main demo windows.
This is on Ubuntu 10.10 with Python 2.6.6 and wxPython 2.8.12.0
Tried to figure out what is causing this but so far haven't found it.
Did a little test by creating a dialog which has a panel and the buttons on that panel, i.e. something similar to what the sized demo does for the error dialog but this works as expected, i.e. it closes even if there is no wx.ID_CANCEL button on the panel.
After adding the wx.ID_CANCEL button one can still not close the error nor the form dialog when clicking on the "X" button (top right of the window), checked other dialogs (File, dir etc) they work fine so it is something done in the sized controls which causes this strange behaviour.
Werner
···
On 08/01/2011 08:35 PM, Robin Dunn wrote:
On 7/31/11 3:14 AM, werner wrote:
When one runs the ErrorDialog demo the is locked, i.e. have to kill it
as I can't close the ErrorDialog nor the main demo windows.
This is on Ubuntu 10.10 with Python 2.6.6 and wxPython 2.8.12.0
Tried to figure out what is causing this but so far haven't found it.
It is rather bizarre, I don't see what is wrong either. It appears that something is blocking the ESC key handler and also clicking on the close button in the caption bar. But adding a wx.ID_CANCEL button does close the dialog when it is clicked...