Many thanks to roee, Mike, and Andrea and all who put with me
and my trials and frustrations.
I always do the following, build a list of textctrls for
navigation, etc.
# There are 6 entry fields, this will tell me where I am
s.findx[s.f.itemno] = 0; s.indxf[0] = s.f.itemno
s.findx[s.f.descr] = 1 ; s.indxf[1] = s.f.descr
s.findx[s.f.unit] = 2 ; s.indxf[2] = s.f.unit
s.findx[s.f.taxc] = 3 ; s.indxf[3] = s.f.taxc
s.findx[s.f.price] = 4 ; s.indxf[4] = s.f.price
s.findx[s.f.qty] = 5 ; s.indxf[5] = s.f.qty
for i in range(6):
s.indxf[i].Bind(wx.EVT_KEY_DOWN,s.keydown)
Therefore I only need to add the following code to all
frames and ESC solved on all platforms.
def keydown(s,event):
k = event.GetKeyCode()
if k == wx.WXK_ESCAPE:
s.dologout(0)
event.Skip()
(just wanted you to know I gave up giving up. For now.)