X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc4b282d2fcc9bb793264da6bc53b030336c41c6..b81383bbd984f1b0aad8db92d7be069f2a23fa74:/wxPython/samples/doodle/superdoodle.py?ds=sidebyside diff --git a/wxPython/samples/doodle/superdoodle.py b/wxPython/samples/doodle/superdoodle.py index 154d89f7b1..0b95c066da 100644 --- a/wxPython/samples/doodle/superdoodle.py +++ b/wxPython/samples/doodle/superdoodle.py @@ -57,8 +57,7 @@ class DoodleFrame(wx.Frame): 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) @@ -321,7 +320,7 @@ class ColourIndicator(wx.Window): 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() @@ -399,5 +398,5 @@ class DoodleApp(wx.App): #---------------------------------------------------------------------- if __name__ == '__main__': - app = DoodleApp(0) + app = DoodleApp(redirect=True) app.MainLoop()