[GRASS-SVN] r67270 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 20 03:20:11 PST 2015


Author: martinl
Date: 2015-12-20 03:20:11 -0800 (Sun, 20 Dec 2015)
New Revision: 67270

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix size of Quit dialog on Windows

Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2015-12-20 11:09:39 UTC (rev 67269)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2015-12-20 11:20:11 UTC (rev 67270)
@@ -2106,7 +2106,7 @@
         
         :param parent: window
         """
-        wx.Dialog.__init__(self, parent, id, title, style=style, size=size, **kwargs)
+        wx.Dialog.__init__(self, parent, id, title, style=style, **kwargs)
         self.panel = wx.Panel(parent = self, id = wx.ID_ANY)
 
         self.informLabel = wx.StaticText(parent=self.panel, id=wx.ID_ANY,
@@ -2125,7 +2125,8 @@
         self.btnQuit.Bind(wx.EVT_BUTTON, self.OnQuit)
         
         self.__layout()
-        
+        self.SetSize(size)
+
     def __layout(self):
         """Do layout"""
         sizer = wx.BoxSizer(wx.VERTICAL)



More information about the grass-commit mailing list