[GRASS-SVN] r33898 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 16 05:35:47 EDT 2008


Author: martinl
Date: 2008-10-16 05:35:47 -0400 (Thu, 16 Oct 2008)
New Revision: 33898

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: open new display when display command (d.*) is typed in cmd
standardize header


Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-10-16 09:20:20 UTC (rev 33897)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-10-16 09:35:47 UTC (rev 33898)
@@ -1,24 +1,22 @@
 """
-MODULE:     wxgui.py
+ at package wxgui.py
 
-CLASSES:
-    * GMFrame
-    * GMApp
+ at brief Main Python app for GRASS wxPython GUI. Main menu, layer management
+toolbar, notebook control for display management and access to
+command console.
 
-PURPOSE:    Main Python app for GRASS wxPython GUI. Main menu, layer management
-            toolbar, notebook control for display management and access to
-            command console.
+Classes:
+ - GMFrame
+ - GMApp
 
-AUTHORS:    The GRASS Development Team
-            Michael Barton (Arizona State University)
-            Jachym Cepicky (Mendel University of Agriculture)
-            Martin Landa <landa.martin gmail.com>
+(C) 2006-2008 by the GRASS Development Team
+This program is free software under the GNU General Public
+License (>=v2). Read the file COPYING that comes with GRASS
+for details.
 
-COPYRIGHT:  (C) 2006-2007 by the GRASS Development Team
-            This program is free software under the GNU General Public
-            License (>=v2). Read the file COPYING that comes with GRASS
-            for details.
-
+ at author Michael Barton (Arizona State University)
+ at author Jachym Cepicky (Mendel University of Agriculture)
+ at author Martin Landa <landa.martin gmail.com>
 """
 
 import sys
@@ -413,8 +411,10 @@
 
     def OnRunCmd(self, event):
         """Run command"""
+        cmd = event.GetString()
 
-        cmd = event.GetString()
+        if cmd[:2] == 'd.' and not self.curr_page:
+            self.NewDisplay(show=True)
         
         self.goutput.RunCmd(cmd, switchPage=True)
         



More information about the grass-commit mailing list