[GRASS-SVN] r37103 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 10 10:53:41 EDT 2009


Author: martinl
Date: 2009-05-10 10:53:41 -0400 (Sun, 10 May 2009)
New Revision: 37103

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: error icon for messages
       (merge trunk, r37102)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2009-05-10 14:51:53 UTC (rev 37102)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2009-05-10 14:53:41 UTC (rev 37103)
@@ -2765,7 +2765,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
             
             self.toolbars['vdigit'] = toolbars.VDigitToolbar(parent=self, map=self.Map,
@@ -2818,7 +2819,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/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py	2009-05-10 14:51:53 UTC (rev 37102)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py	2009-05-10 14:53:41 UTC (rev 37103)
@@ -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