From: Robin Dunn Date: Mon, 27 May 2002 21:22:37 +0000 (+0000) Subject: Some little demo updates X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/932142005296b619b7eaf71de6c2e0fecae6d12d?ds=sidebyside;hp=bb751cf906f6e538efafd863414d027c6aa3a872 Some little demo updates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/b b/wxPython/demo/b index 2ab601f122..6ab95c5f4e 100755 --- a/wxPython/demo/b +++ b/wxPython/demo/b @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh cd .. . b $* cd - diff --git a/wxPython/demo/wxFileHistory.py b/wxPython/demo/wxFileHistory.py index 7cf5ca35d2..571cb8e9fa 100644 --- a/wxPython/demo/wxFileHistory.py +++ b/wxPython/demo/wxFileHistory.py @@ -74,6 +74,7 @@ class TestPanel(wxPanel): def OnFileOpenDialog(self, evt): dlg = wxFileDialog(self, defaultDir = os.getcwd(), + wildcard = "All Files|*", style = wxOPEN | wxCHANGE_DIR) if dlg.ShowModal() == wxID_OK: path = dlg.GetPath() @@ -115,3 +116,9 @@ list appended to a menu, such as the File menu. """ + +if __name__ == '__main__': + import os + import run + run.main(['', os.path.basename(__file__)]) + diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py index b1e6b5360d..eda5e882e9 100644 --- a/wxPython/demo/wxStyledTextCtrl_1.py +++ b/wxPython/demo/wxStyledTextCtrl_1.py @@ -268,17 +268,8 @@ be helpful. """ - -## if __name__ == '__main__': -## import sys -## app = wxPySimpleApp() -## frame = wxFrame(None, -1, "Tester...", size=(640, 480)) -## win = runTest(frame, frame, sys.stdout) -## frame.Show(true) -## app.MainLoop() - - if __name__ == '__main__': + import os import run - run.main(['', 'wxStyledTextCtrl_1']) + run.main(['', os.path.basename(__file__)]) diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index ff7d34fd82..ee705e4c26 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -332,18 +332,10 @@ be helpful. """ -## if __name__ == '__main__': -## import sys -## app = wxPySimpleApp() -## frame = wxFrame(None, -1, "Tester...", size=(640, 480)) -## win = runTest(frame, frame, sys.stdout) -## frame.Show(true) -## app.MainLoop() - - if __name__ == '__main__': + import os import run - run.main(['', 'wxStyledTextCtrl_2']) + run.main(['', os.path.basename(__file__)])