[GRASS-SVN] r54488 - grass/trunk/gui/wxpython/iclass
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 1 13:34:22 PST 2013
Author: martinl
Date: 2013-01-01 13:34:20 -0800 (Tue, 01 Jan 2013)
New Revision: 54488
Modified:
grass/trunk/gui/wxpython/iclass/g.gui.iclass.py
Log:
g.gui.iclass: flag to maximize window
Modified: grass/trunk/gui/wxpython/iclass/g.gui.iclass.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/g.gui.iclass.py 2013-01-01 21:13:29 UTC (rev 54487)
+++ grass/trunk/gui/wxpython/iclass/g.gui.iclass.py 2013-01-01 21:34:20 UTC (rev 54488)
@@ -28,6 +28,10 @@
#% keywords: classification
#% keywords: signatures
#%end
+#%flag
+#% key: m
+#% description: Maximize window
+#%end
#%option G_OPT_I_GROUP
#% required: no
#%end
@@ -94,10 +98,14 @@
if trainingmap_name:
giface.WriteLog(_("Loading training map <%s>...") % trainingmap_name)
frame.ImportAreas(trainingmap_name)
+
+ frame.Show()
+ if flags['m']:
+ frame.Maximize()
+ else:
+ frame.CenterOnScreen()
+
- frame.CenterOnScreen()
- frame.Show()
-
app.MainLoop()
if __name__ == '__main__':
More information about the grass-commit
mailing list