box.Add(self.doodle, 1, wx.EXPAND)
# Tell the frame that it should layout itself in response to
- # size events.
- self.SetAutoLayout(True)
+ # size events using this sizer.
self.SetSizer(box)
pen = wx.Pen(self.colour, self.thickness)
dc.BeginDrawing()
dc.SetPen(pen)
- dc.DrawLine((10, sz.height/2), (sz.width-10, sz.height/2))
+ dc.DrawLine(10, sz.height/2, sz.width-10, sz.height/2)
dc.EndDrawing()
<p><b>SuperDoodle</b> and <b>wxPython</b> are brought to you by
<b>Robin Dunn</b> and <b>Total Control Software</b>, Copyright
-© 1997-2003.</p>
+© 1997-2006.</p>
</body>
</html>
'''
#----------------------------------------------------------------------
if __name__ == '__main__':
- app = DoodleApp(0)
+ app = DoodleApp(redirect=True)
app.MainLoop()