Fix setting the view size
authorAntonio Ospite <ao2@ao2.it>
Fri, 3 Oct 2014 10:06:29 +0000 (12:06 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 3 Oct 2014 10:59:36 +0000 (12:59 +0200)
SetInitialSize() also sets the min size which is needed because the view
is added to a sizer.

CanvasView.py

index 28a7d0d..a33ee8d 100755 (executable)
@@ -67,7 +67,7 @@ class CanvasView(wx.Window):
 
         self.offset_angle = -pi/2.
 
 
         self.offset_angle = -pi/2.
 
-        self.SetSize((w, h))
+        self.SetInitialSize((w, h))
 
         self.SetFocus()
 
 
         self.SetFocus()