win.SetOrientation(wxLAYOUT_HORIZONTAL)
win.SetAlignment(wxLAYOUT_TOP)
win.SetBackgroundColour(wxColour(255, 0, 0))
- win.SetSashVisible(wxSASH_BOTTOM, true)
+ win.SetSashVisible(wxSASH_BOTTOM, True)
self.topWindow = win
win.SetOrientation(wxLAYOUT_HORIZONTAL)
win.SetAlignment(wxLAYOUT_BOTTOM)
win.SetBackgroundColour(wxColour(0, 0, 255))
- win.SetSashVisible(wxSASH_TOP, true)
+ win.SetSashVisible(wxSASH_TOP, True)
self.bottomWindow = win
win.SetOrientation(wxLAYOUT_VERTICAL)
win.SetAlignment(wxLAYOUT_LEFT)
win.SetBackgroundColour(wxColour(0, 255, 0))
- win.SetSashVisible(wxSASH_RIGHT, TRUE)
+ win.SetSashVisible(wxSASH_RIGHT, True)
win.SetExtraBorderSize(10)
textWindow = wxTextCtrl(win, -1, "", wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE|wxSUNKEN_BORDER)
win.SetOrientation(wxLAYOUT_VERTICAL)
win.SetAlignment(wxLAYOUT_LEFT)
win.SetBackgroundColour(wxColour(0, 255, 255))
- win.SetSashVisible(wxSASH_RIGHT, TRUE)
+ win.SetSashVisible(wxSASH_RIGHT, True)
self.leftWindow2 = win
def OnExit(self, evt):
- self.Close(true)
+ self.Close(True)
def OnNewWindow(self, evt):
self.winCount = self.winCount + 1
win = wxMDIChildFrame(self, -1, "Child Window: %d" % self.winCount)
canvas = MyCanvas(win)
- win.Show(true)
+ win.Show(True)
#----------------------------------------------------------------------
-class MyApp(wxApp):
- def OnInit(self):
- frame = MyParentFrame()
- frame.Show(true)
- self.SetTopWindow(frame)
- return true
+if __name__ == '__main__':
+ class MyApp(wxApp):
+ def OnInit(self):
+ wxInitAllImageHandlers()
+ frame = MyParentFrame()
+ frame.Show(True)
+ self.SetTopWindow(frame)
+ return True
-app = MyApp(0)
-app.MainLoop()
+ app = MyApp(0)
+ app.MainLoop()