Kaynağa Gözat

wxGUI: error icon for messages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37102 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 yıl önce
ebeveyn
işleme
5e67565849

+ 4 - 2
gui/wxpython/gui_modules/mapdisp.py

@@ -306,7 +306,8 @@ class MapFrame(wx.Frame):
                 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 @@ class MapFrame(wx.Frame):
                 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
 
             #

+ 2 - 1
gui/wxpython/gui_modules/wxgui_utils.py

@@ -508,7 +508,8 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             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: