[GRASS-SVN] r50071 - grass/branches/develbranch_6/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 5 13:00:57 EST 2012
Author: martinl
Date: 2012-01-05 10:00:57 -0800 (Thu, 05 Jan 2012)
New Revision: 50071
Modified:
grass/branches/develbranch_6/gui/wxpython/psmap/toolbars.py
Log:
wxGUI/psmap: fix decoration menu
Modified: grass/branches/develbranch_6/gui/wxpython/psmap/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/psmap/toolbars.py 2012-01-04 17:50:07 UTC (rev 50070)
+++ grass/branches/develbranch_6/gui/wxpython/psmap/toolbars.py 2012-01-05 18:00:57 UTC (rev 50071)
@@ -84,6 +84,7 @@
'addNorthArrow': MetaIcon(img = 'north-arrow-add',
label = _('North Arrow')),
}
+ self.icons = icons
return self._getToolbarData((('loadFile', icons['scriptLoad'],
self.parent.OnLoadFile),
@@ -131,10 +132,9 @@
def OnDecoration(self, event):
"""!Decorations overlay menu
"""
- self._onMenu(((PsMapIcons["addLegend"], self.parent.OnAddLegend),
- (PsMapIcons["addMapinfo"], self.parent.OnAddMapinfo),
- (PsMapIcons["addScalebar"], self.parent.OnAddScalebar),
- (PsMapIcons["addText"], self.parent.OnAddText),
- (PsMapIcons["addImage"], self.parent.OnAddImage),
- (PsMapIcons["addNorthArrow"], self.parent.OnAddNorthArrow)))
-
+ self._onMenu(((self.icons["addLegend"], self.parent.OnAddLegend),
+ (self.icons["addMapinfo"], self.parent.OnAddMapinfo),
+ (self.icons["addScalebar"], self.parent.OnAddScalebar),
+ (self.icons["addText"], self.parent.OnAddText),
+ (self.icons["addImage"], self.parent.OnAddImage),
+ (self.icons["addNorthArrow"], self.parent.OnAddNorthArrow)))
More information about the grass-commit
mailing list