[GRASS-SVN] r48963 -
grass/branches/releasebranch_6_4/gui/wxpython/icons
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 27 07:49:22 EDT 2011
Author: martinl
Date: 2011-10-27 04:49:22 -0700 (Thu, 27 Oct 2011)
New Revision: 48963
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py
Log:
wxGUI: don't fail on missing icons
Modified: grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py 2011-10-27 11:19:10 UTC (rev 48962)
+++ grass/branches/releasebranch_6_4/gui/wxpython/icons/icon.py 2011-10-27 11:49:22 UTC (rev 48963)
@@ -83,7 +83,6 @@
iconSet[key] = os.path.join(iconPathVDigit, img)
else:
iconSet[key] = os.path.join(iconPath, img)
- print img, iconSet[key]
except StandardError, e:
sys.exit(_("Unable to load icon theme. Reason: %s") % e)
@@ -430,42 +429,42 @@
label = _('Quit')),
},
'psMap' : {
- 'scriptSave' : MetaIcon(img = iconSet['script-save'],
+ 'scriptSave' : MetaIcon(img = iconSet.get('script-save', wx.ART_ERROR),
label = _('Generate text file with mapping instructions')),
- 'scriptLoad' : MetaIcon(img = iconSet['script-load'],
+ 'scriptLoad' : MetaIcon(img = iconSet.get('script-load', wx.ART_ERROR),
label = _('Load text file with mapping instructions')),
- 'psExport' : MetaIcon(img = iconSet['ps-export'],
+ 'psExport' : MetaIcon(img = iconSet.get('ps-export', wx.ART_ERROR),
label = _('Generate PostScript output')),
- 'pdfExport' : MetaIcon(img = iconSet['pdf-export'],
+ 'pdfExport' : MetaIcon(img = iconSet.get('pdf-export', wx.ART_ERROR),
label = _('Generate PDF output')),
- 'pageSetup' : MetaIcon(img = iconSet['page-settings'],
+ 'pageSetup' : MetaIcon(img = iconSet.get('page-settings', wx.ART_ERROR),
label = _('Page setup'),
desc = _('Specify paper size, margins and orientation')),
- 'fullExtent' : MetaIcon(img = iconSet['zoom-extent'],
+ 'fullExtent' : MetaIcon(img = iconSet.get('zoom-extent', wx.ART_ERROR),
label = _("Full extent"),
desc = _("Zoom to full extent")),
- 'addMap' : MetaIcon(img = iconSet['layer-add'],
+ 'addMap' : MetaIcon(img = iconSet.get('layer-add', wx.ART_ERROR),
label = _("Map frame"),
desc = _("Click and drag to place map frame")),
- 'addRast' : MetaIcon(img = iconSet['layer-raster-add'],
+ 'addRast' : MetaIcon(img = iconSet.get('layer-raster-add', wx.ART_ERROR),
label = _("Raster map"),
desc = _("Add raster map")),
- 'addVect' : MetaIcon(img = iconSet['layer-vector-add'],
+ 'addVect' : MetaIcon(img = iconSet.get('layer-vector-add', wx.ART_ERROR),
label = _("Vector map"),
desc = _("Add vector map")),
- 'deleteObj' : MetaIcon(img = iconSet['layer-remove'],
+ 'deleteObj' : MetaIcon(img = iconSet.get('layer-remove', wx.ART_ERROR),
label = _("Delete selected object")),
- 'preview' : MetaIcon(img = iconSet['execute'],
+ 'preview' : MetaIcon(img = iconSet.get('execute', wx.ART_ERROR),
label = _("Show preview")),
- 'quit' : MetaIcon(img = iconSet['quit'],
+ 'quit' : MetaIcon(img = iconSet.get('quit', wx.ART_ERROR),
label = _('Quit Cartographic Composer')),
- 'addText' : MetaIcon(img = iconSet['text-add'],
+ 'addText' : MetaIcon(img = iconSet.get('text-add', wx.ART_ERROR),
label = _('Add text')),
- 'addMapinfo' : MetaIcon(img = iconSet['map-info'],
+ 'addMapinfo' : MetaIcon(img = iconSet.get('map-info', wx.ART_ERROR),
label = _('Add map info')),
- 'addLegend' : MetaIcon(img = iconSet['legend-add'],
+ 'addLegend' : MetaIcon(img = iconSet.get('legend-add', wx.ART_ERROR),
label = _('Add legend')),
- 'addScalebar' : MetaIcon(img = iconSet['scalebar-add'],
+ 'addScalebar' : MetaIcon(img = iconSet.get('scalebar-add', wx.ART_ERROR),
label = _('Add scale bar')),
}
}
More information about the grass-commit
mailing list