[GRASS-SVN] r67271 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

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


Author: martinl
Date: 2015-12-20 03:21:49 -0800 (Sun, 20 Dec 2015)
New Revision: 67271

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix size of Quit dialog on Windows
       (merge r67270 from trunk)


Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py	2015-12-20 11:20:11 UTC (rev 67270)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py	2015-12-20 11:21:49 UTC (rev 67271)
@@ -2796,7 +2796,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,
@@ -2815,7 +2815,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