X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b867149612d2146d5a781874f0e5ccf1b0dc43b..b8b8c49b5438a5516ffea6fa73d4015d183f53d6:/wxPython/demo/wxKeyEvents.py?ds=inline diff --git a/wxPython/demo/wxKeyEvents.py b/wxPython/demo/wxKeyEvents.py index 4811892fe8..f943c4b66b 100644 --- a/wxPython/demo/wxKeyEvents.py +++ b/wxPython/demo/wxKeyEvents.py @@ -114,8 +114,7 @@ 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) self.SetBackgroundColour(wxBLUE) self.haveFocus = false self.callSkip = false @@ -239,7 +238,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)