]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/demoMainLoop.py
init m_isOpened in ctor (bug 736208)
[wxWidgets.git] / wxPython / demo / demoMainLoop.py
index 78952b464d84d70b3bf473f7f83d10bff99f50eb..3d66c2ae4cab9d5582e54df5a9be50d001536512 100755 (executable)
@@ -54,7 +54,7 @@ class MyFrame(wxFrame):
 
 
     def OnCloseWindow(self, event):
-        app.keepGoing = false
+        app.keepGoing = False
         self.Destroy()
 
     def OnIdle(self, event):
@@ -90,7 +90,7 @@ class MyApp(wxApp):
 
             # This inner loop will process any GUI events until there
             # are no more waiting.
-           while self.Pending():
+            while self.Pending():
                 self.Dispatch()
 
             # Send idle events to idle handlers.  You may want to throtle
@@ -104,12 +104,12 @@ class MyApp(wxApp):
 
     def OnInit(self):
         frame = MyFrame(None, -1, "This is a test")
-        frame.Show(true)
+        frame.Show(True)
         self.SetTopWindow(frame)
 
-        self.keepGoing = true
+        self.keepGoing = True
 
-        return true
+        return True
 
 
 app = MyApp(0)