]> git.saurik.com Git - wxWidgets.git/commitdiff
Some little demo updates
authorRobin Dunn <robin@alldunn.com>
Mon, 27 May 2002 21:22:37 +0000 (21:22 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 27 May 2002 21:22:37 +0000 (21:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/b
wxPython/demo/wxFileHistory.py
wxPython/demo/wxStyledTextCtrl_1.py
wxPython/demo/wxStyledTextCtrl_2.py

index 2ab601f12260a34f4d1a43f71ea5bd4a47fdb89a..6ab95c5f4e9c0540284571271301daed743df75b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 cd ..
 . b $*
 cd -
index 7cf5ca35d2b70d86ec407f32da17855edef0fc7c..571cb8e9facbb1950272a923ca0c15a6c97d9cb5 100644 (file)
@@ -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.
 
 </body></html>
 """
+
+if __name__ == '__main__':
+    import os
+    import run
+    run.main(['', os.path.basename(__file__)])
+
index b1e6b5360df587605269dcddf065519335a6288b..eda5e882e9886d648d02f1040cf2c6fff6130e49 100644 (file)
@@ -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__)])
 
index ff7d34fd828af167cec34d3ea7bff2e3bd2d0c5a..ee705e4c2632136eaa42517f0872224247009928 100644 (file)
@@ -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__)])