[GRASS-SVN] r49937 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 27 13:53:59 EST 2011
Author: annakrat
Date: 2011-12-27 10:53:59 -0800 (Tue, 27 Dec 2011)
New Revision: 49937
Modified:
grass/trunk/gui/wxpython/psmap/toolbars.py
Log:
wxGUI/wxpsmap: fix decoration menu
Modified: grass/trunk/gui/wxpython/psmap/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/toolbars.py 2011-12-27 18:06:24 UTC (rev 49936)
+++ grass/trunk/gui/wxpython/psmap/toolbars.py 2011-12-27 18:53:59 UTC (rev 49937)
@@ -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,10 @@
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