X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..dec9fa491d282a94c122c74f69e835682a28d72d:/wxPython/demo/wxCalendar.py diff --git a/wxPython/demo/wxCalendar.py b/wxPython/demo/wxCalendar.py index 3b8499d7ce..f2d5c7057a 100644 --- a/wxPython/demo/wxCalendar.py +++ b/wxPython/demo/wxCalendar.py @@ -481,7 +481,7 @@ class PrintCalend: year, month = self.IncMonth(year, month) y = y + 3.5 - x = x + 4.0 # next colum + x = x + 4.0 # next column DC.EndDrawing() @@ -612,17 +612,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 @@ -640,3 +629,12 @@ See example for various methods used to set display month, year, and highlighted by Lorne White """ + + + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +