simultaneous click on X (close on mws) and key press - ESC

Hi,

Small problem I'v found - simultaneus clicking on close (X in upper right
corner) and pressing ESC-ape (key) - window appers to be disabled - he is
modal, active and enabled - grr, but after this action is hidden !??

my python is 2.5 and wx 2.6.3.2

Example in attachment - just press "next level" and at last at level 2 try close
and escape, debug build of wxpython shows message like:

E:\media\video>python_d bang.py
Traceback (most recent call last):
  File "bang.py", line 43, in ShowMe
    d.ShowModal()
  File "s:\binw\py25\site-packages\wx-2.6.3\wx\_windows.py", line 688, in
ShowModal
    return _windows_.Dialog_ShowModal(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in
s:\gnus\wxwindows\v263-2\src\msw\evt
loop.cpp(321): can't call Exit() if not running

bang.py.txt (1.67 KB)