]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxKeyEvents.py
Test code for float editors
[wxWidgets.git] / wxPython / demo / wxKeyEvents.py
index 4811892fe856499d13428f25c82d5a06b07ad534..e7574a702a46226228d1d3b5efffe105c046409e 100644 (file)
@@ -114,8 +114,11 @@ keyMap = {
 
 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
@@ -239,7 +242,7 @@ class KeyLog(wxListCtrl, wxListCtrlAutoWidthMixin):
             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)