Some little demo updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-05-27 21:22:37 +00:00
parent bb751cf906
commit 9321420052
4 changed files with 12 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
cd ..
. b $*
cd -

View 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__)])

View 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__)])

View 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__)])