[GRASS-SVN] r73149 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 23 18:26:58 PDT 2018
Author: wenzeslaus
Date: 2018-08-23 18:26:58 -0700 (Thu, 23 Aug 2018)
New Revision: 73149
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI/startup: window titles should use title case (plus doc)
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2018-08-23 20:21:11 UTC (rev 73148)
+++ grass/trunk/gui/wxpython/gis_set.py 2018-08-24 01:26:58 UTC (rev 73149)
@@ -253,8 +253,16 @@
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
def _set_properties(self, version, revision):
- """Set frame properties"""
- self.SetTitle(_("GRASS GIS %s startup%s") % (version, revision))
+ """Set frame properties
+
+ :param version: Version in the form of X.Y.Z
+ :param revision: Version control revision with leading space
+
+ *revision* should be an empty string in case of release and
+ otherwise it needs a leading space to be separated from the rest
+ of the title.
+ """
+ self.SetTitle(_("GRASS GIS %s Startup%s") % (version, revision))
self.SetIcon(wx.Icon(os.path.join(globalvar.ICONDIR, "grass.ico"),
wx.BITMAP_TYPE_ICO))
More information about the grass-commit
mailing list