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())
#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()