Minor tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@34304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-23 22:29:06 +00:00
parent 5da070d00f
commit c580b5db1f
8 changed files with 27 additions and 22 deletions

View File

@@ -598,7 +598,8 @@ class SetPrintout(wxPrintout):
class MyApp(wxApp):
def OnInit(self):
frame = CalendFrame(None, -1, "Test Calendar")
wxInitAllImageHandlers()
frame = CalendFrame(None, -1, "Test Calendar", sys.stdout)
frame.Show(True)
self.SetTopWindow(frame)
return True
@@ -612,17 +613,6 @@ def MessageDlg(self, message, type = 'Message'):
#---------------------------------------------------------------------------
def main():
app = MyApp(0)
app.MainLoop()
if __name__ == '__main__':
main()
#---------------------------------------------------------------------------
def runTest(frame, nb, log):
win = TestPanel(nb, log, frame)
return win
@@ -630,6 +620,14 @@ def runTest(frame, nb, log):
#---------------------------------------------------------------------------
if __name__ == '__main__':
import sys,os
import run
run.main(['', os.path.basename(sys.argv[0])])
overview = """\
This control provides a calendar control class for displaying and selecting dates. In addition, the class is extended and can now be used for printing/previewing.