X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d9022fe3bb50a75b9b5eaf5cf32558e518ba310..851ccc357b1ba2eac05d9758e7d3640fd2d967d9:/wxPython/samples/doodle/superdoodle.py diff --git a/wxPython/samples/doodle/superdoodle.py b/wxPython/samples/doodle/superdoodle.py index b589e72baa..08ee49339e 100644 --- a/wxPython/samples/doodle/superdoodle.py +++ b/wxPython/samples/doodle/superdoodle.py @@ -53,7 +53,7 @@ class DoodleFrame(wxFrame): # Tell the frame that it should layout itself in response to # size events. - self.SetAutoLayout(true) + self.SetAutoLayout(True) self.SetSizer(box) @@ -213,7 +213,7 @@ class ControlPanel(wxPanel): box.Add(tGrid, 0, wxALL, spacing) box.Add(ci, 0, wxEXPAND|wxALL, spacing) self.SetSizer(box) - self.SetAutoLayout(true) + self.SetAutoLayout(True) # Resize this window so it is just large enough for the # minimum requirements of the sizer. @@ -261,7 +261,7 @@ class ColourIndicator(wxWindow): def __init__(self, parent): wxWindow.__init__(self, parent, -1, style=wxSUNKEN_BORDER) self.SetBackgroundColour(wxWHITE) - self.SetSize(wxSize(-1, 40)) + self.SetSize(wxSize(-1, 45)) self.colour = self.thickness = None EVT_PAINT(self, self.OnPaint) @@ -348,7 +348,7 @@ instructions:

lc.height.AsIs() button.SetConstraints(lc) - self.SetAutoLayout(true) + self.SetAutoLayout(True) self.Layout() self.CentreOnParent(wxBOTH) @@ -358,9 +358,9 @@ instructions:

class DoodleApp(wxApp): def OnInit(self): frame = DoodleFrame(None) - frame.Show(true) + frame.Show(True) self.SetTopWindow(frame) - return true + return True #----------------------------------------------------------------------