Accelerator table with Escape

An addendum to my last message in which I said:

I have one minor problem: if I want to use the Gimp, but I
inadvertently start a wxpython app whose first frame is empty except
for the menu, I still have to use the menu to exit wxpython.

And I found a solution, but it doesn't win the beauty contest:
I added these two lines to my __init__:
        esc_dummy = wx.TextCtrl(self.panel,-1,"",pos=(0,0),size=(0,0))
        esc_dummy.SetFocus()
Thanks for suggesting the way out.

···

--
Egbert Bouwman [GMail]