From b5ba5a82ab4d1abcbe93b11c3e485a67c32a4593 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 3 Oct 2014 12:06:29 +0200 Subject: [PATCH] Fix setting the view size SetInitialSize() also sets the min size which is needed because the view is added to a sizer. --- CanvasView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CanvasView.py b/CanvasView.py index 28a7d0d..a33ee8d 100755 --- a/CanvasView.py +++ b/CanvasView.py @@ -67,7 +67,7 @@ class CanvasView(wx.Window): self.offset_angle = -pi/2. - self.SetSize((w, h)) + self.SetInitialSize((w, h)) self.SetFocus() -- 2.1.4