Przeglądaj źródła

Module dialogs now size correctly on opening.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39985 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 15 lat temu
rodzic
commit
62d6e68f01
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      gui/wxpython/gui_modules/menuform.py

+ 2 - 1
gui/wxpython/gui_modules/menuform.py

@@ -826,7 +826,7 @@ class mainFrame(wx.Frame):
         guisizer.SetSizeHints(self.panel)
         # called automatically by SetSizer()
         self.panel.SetAutoLayout(True) 
-        self.panel.SetSizer(guisizer)
+#        self.panel.SetSizer(guisizer)
         guisizer.Fit(self.panel)
 
         sizeFrame = self.GetBestSize()
@@ -841,6 +841,7 @@ class mainFrame(wx.Frame):
         self.resultQ = Queue.Queue()
         self.updateThread = UpdateQThread(self.notebookpanel, self.requestQ, self.resultQ)
 
+        self.SetSizer(guisizer)
         self.Layout()
 
     def updateValuesHook(self):