Browse Source

wxGUI: do not switch to output tab on querying

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54980 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
aa9175f5f0
2 changed files with 4 additions and 9 deletions
  1. 3 3
      gui/wxpython/gui_core/query.py
  2. 1 6
      gui/wxpython/mapdisp/frame.py

+ 3 - 3
gui/wxpython/gui_core/query.py

@@ -31,12 +31,12 @@ class QueryDialog(wx.Dialog):
         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 @@ def test():
     app.MainLoop()
 
 if __name__ == "__main__":
-    test()
+    test()

+ 1 - 6
gui/wxpython/mapdisp/frame.py

@@ -9,7 +9,7 @@ Can be used either from Layer Manager or as d.mon backend.
 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 @@ class MapFrame(SingleMapFrame):
         
         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