"""
title = "Do a doodle"
def __init__(self, parent):
- wxFrame.__init__(self, parent, -1, self.title, size=(800,600))
+ wxFrame.__init__(self, parent, -1, self.title, size=(800,600),
+ style=wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
self.CreateStatusBar()
self.MakeMenu()
self.filename = None
# Tell the frame that it should layout itself in response to
# size events.
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.SetSizer(box)
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.
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)
lc.height.AsIs()
button.SetConstraints(lc)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.Layout()
self.CentreOnParent(wxBOTH)
class DoodleApp(wxApp):
def OnInit(self):
frame = DoodleFrame(None)
- frame.Show(true)
+ frame.Show(True)
self.SetTopWindow(frame)
- return true
+ return True
#----------------------------------------------------------------------