tweaked some tests a bit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-10-17 05:29:57 +00:00
parent f3c2c22108
commit 8082483b70
2 changed files with 20 additions and 2 deletions

View File

@@ -40,6 +40,12 @@ class RunDemoApp(wxApp):
frame = wxFrame(None, -1, "RunDemo: " + self.name, size=(0,0), frame = wxFrame(None, -1, "RunDemo: " + self.name, size=(0,0),
style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE) style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE)
frame.CreateStatusBar() 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) frame.Show(true)
win = self.demoModule.runTest(frame, frame, Log()) win = self.demoModule.runTest(frame, frame, Log())

View File

@@ -135,9 +135,21 @@ class PythonSTC(wxStyledTextCtrl):
#st = string.join(lst) #st = string.join(lst)
#print len(st) #print len(st)
#self.AutoCompShow(0, 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.AutoCompSetIgnoreCase(true)
self.AutoCompShow(0, string.join(keyword.kwlist)) self.AutoCompShow(0, string.join(kw))
self.AutoCompSelect('br') #self.AutoCompSelect('br')
else: else:
event.Skip() event.Skip()