[GRASS-SVN] r54489 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 1 13:46:22 PST 2013


Author: martinl
Date: 2013-01-01 13:46:22 -0800 (Tue, 01 Jan 2013)
New Revision: 54489

Modified:
   grass/trunk/gui/wxpython/iclass/g.gui.iclass.py
Log:
g.gui.iclass: center on screen before showing the frame
              TODO: why Maximize doesn't work for frame which is not shown


Modified: grass/trunk/gui/wxpython/iclass/g.gui.iclass.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/g.gui.iclass.py	2013-01-01 21:34:20 UTC (rev 54488)
+++ grass/trunk/gui/wxpython/iclass/g.gui.iclass.py	2013-01-01 21:46:22 UTC (rev 54489)
@@ -99,12 +99,11 @@
         giface.WriteLog(_("Loading training map <%s>...") % trainingmap_name)
         frame.ImportAreas(trainingmap_name)
 
+    if not flags['m']:
+        frame.CenterOnScreen()
     frame.Show()    
     if flags['m']:
         frame.Maximize()
-    else:
-        frame.CenterOnScreen()
-
     
     app.MainLoop()
     



More information about the grass-commit mailing list