Pārlūkot izejas kodu

wxGUI/startup: window titles should use title case (plus doc)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73149 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 6 gadi atpakaļ
vecāks
revīzija
7974e43f26
1 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. 10 2
      gui/wxpython/gis_set.py

+ 10 - 2
gui/wxpython/gis_set.py

@@ -253,8 +253,16 @@ class GRASSStartup(wx.Frame):
         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))