Browse Source

wxGUI: open new display when display command (d.*) is typed in cmd
standardize header
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33898)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33899 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 năm trước cách đây
mục cha
commit
a541ed5257
1 tập tin đã thay đổi với 17 bổ sung17 xóa
  1. 17 17
      gui/wxpython/wxgui.py

+ 17 - 17
gui/wxpython/wxgui.py

@@ -1,24 +1,22 @@
 """
-MODULE:     wxgui.py
+@package wxgui.py
 
-CLASSES:
-    * GMFrame
-    * GMApp
+@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>
-
-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.
+(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.
 
+@author Michael Barton (Arizona State University)
+@author Jachym Cepicky (Mendel University of Agriculture)
+@author Martin Landa <landa.martin gmail.com>
 """
 
 import sys
@@ -413,8 +411,10 @@ class GMFrame(wx.Frame):
 
     def OnRunCmd(self, event):
         """Run command"""
-
         cmd = event.GetString()
+
+        if cmd[:2] == 'd.' and not self.curr_page:
+            self.NewDisplay(show=True)
         
         self.goutput.RunCmd(cmd, switchPage=True)