Przeglądaj źródła

wxGUI: centre dialogs on screen by default

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44205 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 lat temu
rodzic
commit
b1a359b007
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      gui/wxpython/gui_modules/menuform.py
  2. 1 1
      gui/wxpython/wxgui.py

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

@@ -2154,7 +2154,7 @@ class GUI:
         return processTask(tree).GetTask()
     
     def ParseCommand(self, cmd, gmpath = None, completed = None, parentframe = None,
-                     show = True, modal = False, centreOnParent = True, checkError = False):
+                     show = True, modal = False, centreOnParent = False, checkError = False):
         """!Parse command
         
         Note: cmd is given as list

+ 1 - 1
gui/wxpython/wxgui.py

@@ -428,7 +428,7 @@ class GMFrame(wx.Frame):
         """!Parse command selected from menu"""
         if event:
             cmd = self.GetMenuCmd(event)
-        menuform.GUI().ParseCommand(cmd, parentframe=self)
+        menuform.GUI().ParseCommand(cmd, parentframe = self)
 
     def OnRunScript(self, event):
         """!Run script"""