def OnCloseWindow(self, event):
-        app.keepGoing = false
+        app.keepGoing = False
         self.Destroy()
 
     def OnIdle(self, event):
 
             # 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
 
     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)