From 8082483b70e7d357f72ff61c484cb2aaf424f9c4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 17 Oct 2001 05:29:57 +0000 Subject: [PATCH] tweaked some tests a bit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/run.py | 6 ++++++ wxPython/demo/wxStyledTextCtrl_2.py | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index c58a9a86f0..c62889b057 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -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()) diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index 54b83aa2d2..a06337b361 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -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() -- 2.45.2