[GRASS-SVN] r44205 - in grass/trunk/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 7 04:27:26 EST 2010


Author: martinl
Date: 2010-11-07 01:27:26 -0800 (Sun, 07 Nov 2010)
New Revision: 44205

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: centre dialogs on screen by default


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-11-06 23:06:17 UTC (rev 44204)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-11-07 09:27:26 UTC (rev 44205)
@@ -2154,7 +2154,7 @@
         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

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2010-11-06 23:06:17 UTC (rev 44204)
+++ grass/trunk/gui/wxpython/wxgui.py	2010-11-07 09:27:26 UTC (rev 44205)
@@ -428,7 +428,7 @@
         """!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"""



More information about the grass-commit mailing list