class KeySink(wxWindow):
def __init__(self, parent):
- wxWindow.__init__(self, parent, -1,
- style=wxRAISED_BORDER | wxWANTS_CHARS)
+ wxWindow.__init__(self, parent, -1, style =
+ wxWANTS_CHARS
+ #| wxRAISED_BORDER
+ #| wxSUNKEN_BORDER
+ )
self.SetBackgroundColour(wxBLUE)
self.haveFocus = false
self.callSkip = false
else:
modifiers += '-'
- id = self.InsertStringItem(0xffffff, evType)
+ id = self.InsertStringItem(self.GetItemCount(), evType)
self.SetStringItem(id, 1, keyname)
self.SetStringItem(id, 2, str(keycode))
self.SetStringItem(id, 3, modifiers)