Pārlūkot izejas kodu

wxGUI: fix size of Quit dialog on Windows
(merge https://trac.osgeo.org/grass/changeset/67270 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67271 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 9 gadi atpakaļ
vecāks
revīzija
d8b1601c19
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      gui/wxpython/gui_core/dialogs.py

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

@@ -2796,7 +2796,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,
@@ -2815,7 +2815,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)