X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8082483b70e7d357f72ff61c484cb2aaf424f9c4..0a33446c8e71292bfdb960ed7e26e1f196938cf0:/wxPython/demo/wxStyledTextCtrl_2.py diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index a06337b361..51a14386bd 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -116,7 +116,7 @@ class PythonSTC(wxStyledTextCtrl): self.SetCaretForeground("BLUE") - EVT_KEY_UP(self, self.OnKeyPressed) + EVT_KEY_DOWN(self, self.OnKeyPressed) def OnKeyPressed(self, event): @@ -141,15 +141,14 @@ class PythonSTC(wxStyledTextCtrl): kw.append("aaaaa") kw.append("__init__") kw.append("zzaaaaa") - kw.append("zZaaaaa") + kw.append("zzbaaaa") kw.append("this_is_a_longer_value") kw.append("this_is_a_much_much_much_much_much_much_much_longer_value") - kw.reverse() + kw.sort() # Python sorts are case sensitive + self.AutoCompSetIgnoreCase(false) # so this needs to match - self.AutoCompSetIgnoreCase(true) self.AutoCompShow(0, string.join(kw)) - #self.AutoCompSelect('br') else: event.Skip()