]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxStyledTextCtrl_2.py
wxPython updates for new wxSTC
[wxWidgets.git] / wxPython / demo / wxStyledTextCtrl_2.py
index 54b83aa2d2a86900cc29f06d646d3777c3137069..2b102cc294871cac09d11ce1cf7229995377611c 100644 (file)
@@ -135,9 +135,21 @@ class PythonSTC(wxStyledTextCtrl):
                 #st = string.join(lst)
                 #print len(st)
                 #self.AutoCompShow(0, st)
+
+                kw = keyword.kwlist[:]
+                kw.append("zzzzzz")
+                kw.append("aaaaa")
+                kw.append("__init__")
+                kw.append("zzaaaaa")
+                kw.append("zZaaaaa")
+                kw.append("this_is_a_longer_value")
+                kw.append("this_is_a_much_much_much_much_much_much_much_longer_value")
+
+                #kw.sort()
+
                 self.AutoCompSetIgnoreCase(true)
-                self.AutoCompShow(0, string.join(keyword.kwlist))
-                self.AutoCompSelect('br')
+                self.AutoCompShow(0, string.join(kw))
+                #self.AutoCompSelect('br')
         else:
             event.Skip()