[GRASS-SVN] r37102 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 10 10:51:53 EDT 2009
Author: martinl
Date: 2009-05-10 10:51:53 -0400 (Sun, 10 May 2009)
New Revision: 37102
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: error icon for messages
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-05-10 11:35:38 UTC (rev 37101)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-05-10 14:51:53 UTC (rev 37102)
@@ -306,7 +306,8 @@
self.toolbars['map'].combo.SetValue (_("2D view"))
wx.MessageBox(parent=self,
message=msg,
- caption=_("Error"))
+ caption=_("Error"),
+ style=wx.OK | wx.ICON_ERROR | wx.CENTRE)
return
if self._layerManager:
@@ -363,7 +364,8 @@
self.toolbars['map'].combo.SetValue (_("2D view"))
wx.MessageBox(parent=self,
message=msg,
- caption=_("Error"))
+ caption=_("Error"),
+ style=wx.OK | wx.ICON_ERROR | wx.CENTRE)
return
#
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-05-10 11:35:38 UTC (rev 37101)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2009-05-10 14:51:53 UTC (rev 37102)
@@ -508,7 +508,8 @@
self.mapdisplay.toolbars['map'].combo.SetValue (_("2D view"))
wx.MessageBox(parent=self.mapdisplay,
message=msg,
- caption=_("Error"))
+ caption=_("Error"),
+ style=wx.OK | wx.ICON_ERROR | wx.CENTRE)
return
try:
More information about the grass-commit
mailing list