[GRASS-SVN] r45293 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 3 09:55:32 EST 2011


Author: martinl
Date: 2011-02-03 06:55:32 -0800 (Thu, 03 Feb 2011)
New Revision: 45293

Modified:
   grass/trunk/gui/wxpython/gui_modules/layertree.py
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
minor wxGUI fixes (based on devbr6)


Modified: grass/trunk/gui/wxpython/gui_modules/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/layertree.py	2011-02-03 14:53:02 UTC (rev 45292)
+++ grass/trunk/gui/wxpython/gui_modules/layertree.py	2011-02-03 14:55:32 UTC (rev 45293)
@@ -963,7 +963,7 @@
         elif ltype == 'vector':
             types = list()
             for ftype in ['point', 'line', 'boundary', 'centroid', 'area', 'face']:
-                if UserSettings.Get(group = 'cmd', key = 'showType', subkey = [type, 'enabled']):
+                if UserSettings.Get(group = 'cmd', key = 'showType', subkey = [ftype, 'enabled']):
                     types.append(ftype)
             
             menuform.GUI().ParseCommand(['d.vect', 'type=%s' % ','.join(types)],
@@ -1004,7 +1004,7 @@
         layer = event.GetItem()
         self.layer_selected = layer
         
-        self.PropertiesDialog (layer)
+        self.PropertiesDialog(layer)
         
         if self.GetPyData(layer)[0]['type'] == 'group':
             if self.IsExpanded(layer):

Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2011-02-03 14:53:02 UTC (rev 45292)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2011-02-03 14:55:32 UTC (rev 45293)
@@ -330,8 +330,8 @@
                         "TCL/TK digitizer (v.digit) instead?\n\n"
                         "Details: %s" % errorMsg)
                 
-                self.mapdisplay.toolbars['map'].combo.SetValue (_("2D view"))
-                dlg = wx.MessageDialog(parent = self.mapdisplay,
+                self.toolbars['map'].combo.SetValue(_("2D view"))
+                dlg = wx.MessageDialog(parent = self,
                                        message = msg,
                                        caption=_("Vector digitizer failed"),
                                        style = wx.YES_NO | wx.CENTRE)



More information about the grass-commit mailing list