[GRASS-SVN] r40062 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 19 08:12:18 EST 2009


Author: martinl
Date: 2009-12-19 08:12:17 -0500 (Sat, 19 Dec 2009)
New Revision: 40062

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxGUI/AboutWindow: set icon


Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-12-19 11:54:47 UTC (rev 40061)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-12-19 13:12:17 UTC (rev 40062)
@@ -536,7 +536,7 @@
     def OnAboutGRASS(self, event):
         """Display 'About GRASS' dialog"""
         win = AboutWindow(self)
-        win.Centre()
+        win.CentreOnScreen()
         win.Show(True)  
         
     def OnWorkspace(self, event):
@@ -1582,6 +1582,8 @@
         wx.Frame.__init__(self, parent=parent, id=wx.ID_ANY, size=(550,400), 
                           title=_('About GRASS GIS'))
         
+        self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
+        
         panel = wx.Panel(parent = self, id = wx.ID_ANY)
         
         # version and web site



More information about the grass-commit mailing list