button disable swallows focus

Kubuntu 6.06
wxPython 2.6

Hello,
I could post code, but it's a little hard to make a short demo of the
problem. Lemme try it this way first.

In a nutshell:
I have several panels on a frame.
I have a button on the bottom panel.
I have the frame with:
self.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
I want escape key to quit app at any stage, no matter the focus.
When the button is pressed I go one page forward (not described here).
Pressing escape key works as expected.
When there is no next page, the button is disabled (in OnKeyUp) by:
self.buttNext.Enable(False)
Now, pressing escape does nothing; it's as if the disabled button has
swallowed the focus and I cannot get it back on the frame.
I have tried self.Setfocus() (on the frame) after the OnKeyUp code is all
done. No go.

Please help! :slight_smile:

Donn.

If I'd like to have a ComboBox control that uses auto-complete (typing a name that is in the list causes that name to be placed in the text box), how would I do that?

Also, is it possible to not allow the typing of a name that is not in the list?

Thanks,
John