瀏覽代碼

wxGUI: fix size of Quit dialog on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67270 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父節點
當前提交
afdcbc6866
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gui/wxpython/gui_core/dialogs.py

+ 3 - 2
gui/wxpython/gui_core/dialogs.py

@@ -2106,7 +2106,7 @@ class QuitDialog(wx.Dialog):
         
         :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 @@ class QuitDialog(wx.Dialog):
         self.btnQuit.Bind(wx.EVT_BUTTON, self.OnQuit)
         
         self.__layout()
-        
+        self.SetSize(size)
+
     def __layout(self):
         """Do layout"""
         sizer = wx.BoxSizer(wx.VERTICAL)