Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/turtleblocks.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-11-01 18:16:01 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-11-01 18:16:01 (GMT)
commit0954125712963fd922fc185ca812d674ec510617 (patch)
treeb78793f6b37676119a35279e63570cca204cea79 /turtleblocks.py
parent8f893a4209d7dfa3cfb420af1b0751d17a21fabd (diff)
add version number to window title
Diffstat (limited to 'turtleblocks.py')
-rwxr-xr-xturtleblocks.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/turtleblocks.py b/turtleblocks.py
index c1d7fcd..09a62a9 100755
--- a/turtleblocks.py
+++ b/turtleblocks.py
@@ -72,6 +72,7 @@ class TurtleMain():
activity_info_path = os.path.abspath('./activity/activity.info')
file_activity_info.read(activity_info_path)
bundle_id = file_activity_info.get('Activity', 'bundle_id')
+ self.version = file_activity_info.get('Activity', 'activity_version')
path = os.path.abspath('./locale/')
gettext.bindtextdomain(bundle_id, path)
gettext.textdomain(bundle_id)
@@ -299,7 +300,7 @@ class TurtleMain():
win.set_default_size(self.width, self.height)
win.move(self.x, self.y)
win.maximize()
- win.set_title(_('Turtle Art'))
+ win.set_title('%s %s' % (_('Turtle Art'), str(self.version)))
if os.path.exists(os.path.join(self._execdirname, self._ICON_SUBPATH)):
win.set_icon_from_file(os.path.join(self._execdirname,
self._ICON_SUBPATH))
@@ -313,8 +314,8 @@ class TurtleMain():
self.fixed = gtk.Fixed()
self.fixed.connect('size-allocate', self._fixed_resize_cb)
- width = gtk.gdk.screen_width()-80
- height = gtk.gdk.screen_height()-60
+ width = gtk.gdk.screen_width() - 80
+ height = gtk.gdk.screen_height() - 60
self.fixed.set_size_request(width, height)
self.vbox = gtk.VBox(False, 0)