]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/doodle/superdoodle.py
No animate contrib anymore
[wxWidgets.git] / wxPython / samples / doodle / superdoodle.py
index 154d89f7b1d3e1c0778715457f98a7afa1c7689e..f2f24fecb6a9e1e2cfee1aa376e5e4ed69e1ceab 100644 (file)
@@ -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()
 
 
@@ -352,7 +351,7 @@ instructions: </p>
 
 <p><b>SuperDoodle</b> and <b>wxPython</b> are brought to you by
 <b>Robin Dunn</b> and <b>Total Control Software</b>, Copyright
-&copy; 1997-2003.</p>
+&copy; 1997-2006.</p>
 </body>
 </html>
 '''
@@ -399,5 +398,5 @@ class DoodleApp(wx.App):
 #----------------------------------------------------------------------
 
 if __name__ == '__main__':
-    app = DoodleApp(0)
+    app = DoodleApp(redirect=True)
     app.MainLoop()