]> git.saurik.com Git - wxWidgets.git/commitdiff
tweaked some tests a bit
authorRobin Dunn <robin@alldunn.com>
Wed, 17 Oct 2001 05:29:57 +0000 (05:29 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 17 Oct 2001 05:29:57 +0000 (05:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/run.py
wxPython/demo/wxStyledTextCtrl_2.py

index c58a9a86f084439632bbaf9dc38caee47b968c1d..c62889b0570f409b80903d6a3c9dd92ebcb07400 100755 (executable)
@@ -40,6 +40,12 @@ class RunDemoApp(wxApp):
         frame = wxFrame(None, -1, "RunDemo: " + self.name, size=(0,0),
                         style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE)
         frame.CreateStatusBar()
+        menuBar = wxMenuBar()
+        menu = wxMenu()
+        menu.Append(101, "E&xit\tAlt-X", "Exit demo")
+        EVT_MENU(self, 101, self.OnButton)
+        menuBar.Append(menu, "&File")
+        frame.SetMenuBar(menuBar)
         frame.Show(true)
         win = self.demoModule.runTest(frame, frame, Log())
 
index 54b83aa2d2a86900cc29f06d646d3777c3137069..a06337b36136635e8d62d1b03b8be0e54ef87b6d 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.reverse()
+
                 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()