[GRASS-SVN] r54980 - in grass/trunk/gui/wxpython: gui_core mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 8 01:00:42 PST 2013


Author: martinl
Date: 2013-02-08 01:00:42 -0800 (Fri, 08 Feb 2013)
New Revision: 54980

Modified:
   grass/trunk/gui/wxpython/gui_core/query.py
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: do not switch to output tab on querying


Modified: grass/trunk/gui/wxpython/gui_core/query.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/query.py	2013-02-08 07:20:43 UTC (rev 54979)
+++ grass/trunk/gui/wxpython/gui_core/query.py	2013-02-08 09:00:42 UTC (rev 54980)
@@ -31,12 +31,12 @@
         self.tree = gizmos.TreeListCtrl(self.panel, id = wx.ID_ANY,
                                         style = wx.TR_DEFAULT_STYLE |
                                         wx.TR_HIDE_ROOT)
-
+        
         self.tree.AddColumn("Feature")
         self.tree.AddColumn("Value")
         self.tree.SetMainColumn(0)
         self.tree.SetColumnWidth(0, 180)
-        self.tree.SetColumnWidth(1, 200)
+        self.tree.SetColumnWidth(1, 400)
 
         self.mainSizer.Add(item = self.tree, proportion = 1, flag = wx.EXPAND | wx.ALL, border = 5)
         if self.data:
@@ -124,4 +124,4 @@
     app.MainLoop()
 
 if __name__ == "__main__":
-    test()
\ No newline at end of file
+    test()

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2013-02-08 07:20:43 UTC (rev 54979)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2013-02-08 09:00:42 UTC (rev 54980)
@@ -9,7 +9,7 @@
 Classes:
  - mapdisp::MapFrame
 
-(C) 2006-2012 by the GRASS Development Team
+(C) 2006-2013 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.
@@ -790,11 +790,6 @@
         
         self.toolbars['map'].action['desc'] = 'queryMap'
         self.MapWindow.mouse['use'] = "query"
-
-        if not self.IsStandalone():
-            # switch to output console to show query results
-            self._layerManager.notebook.SetSelectionByName('output')
-        
         self.MapWindow.mouse['box'] = "point"
         self.MapWindow.zoomtype = 0
         



More information about the grass-commit mailing list