Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2015-09-18 21:05:18 +0300
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2015-09-18 21:06:10 +0300
commitde54746f8ff3e157afc3b469a7887a8f478f8543 (patch)
tree9cf28f260d9c40b6f13299bd232226282820287d
parent09b30b093ff62c6fd77bff4b676ff18d0d0207a3 (diff)
Finally fix newVersionDialog size issue on wxpython 3.0.1
This fixes T177
-rw-r--r--Cura/gui/newVersionDialog.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Cura/gui/newVersionDialog.py b/Cura/gui/newVersionDialog.py
index 5195076d06..5819b38268 100644
--- a/Cura/gui/newVersionDialog.py
+++ b/Cura/gui/newVersionDialog.py
@@ -13,9 +13,6 @@ class newVersionDialog(wx.Dialog):
p = wx.Panel(self)
self.panel = p
- s = wx.BoxSizer()
- self.SetSizer(s)
- s.Add(p, flag=wx.ALL, border=15)
s = wx.BoxSizer(wx.VERTICAL)
p.SetSizer(s)
@@ -39,9 +36,12 @@ class newVersionDialog(wx.Dialog):
self.Bind(wx.EVT_BUTTON, self.OnOk, button)
s.Add(button, flag=wx.TOP|wx.ALIGN_RIGHT, border=5)
- self.Fit()
- self.Centre()
+ s = wx.BoxSizer()
+ s.Add(p, flag=wx.ALL, border=15)
+
self.Layout()
+ self.SetSizerAndFit(s)
+ self.Centre()
def OnOk(self, e):
self.Close()