diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:37:22 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-12-05 16:37:22 (GMT) |
commit | e36e067ab3559cfc06689fc7d273eb606800b3f4 (patch) | |
tree | 06bbe5a9884bef69fd0a169819ecb42e611d5650 /VisualMatchActivity.py | |
parent | 708687fb37db5d61ddcffc16199fc8130d07b2d1 (diff) |
using constants
Diffstat (limited to 'VisualMatchActivity.py')
-rw-r--r-- | VisualMatchActivity.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/VisualMatchActivity.py b/VisualMatchActivity.py index 6f34ab9..b37189e 100644 --- a/VisualMatchActivity.py +++ b/VisualMatchActivity.py @@ -43,9 +43,11 @@ from gettext import gettext as _ import locale import os.path +from constants import * from sprites import * import window + SERVICE = 'org.sugarlabs.VisualMatchActivity' IFACE = SERVICE PATH = '/org/augarlabs/VisualMatchActivity' @@ -88,7 +90,8 @@ class VisualMatchActivity(activity.Activity): toolbar_box.toolbar.insert(separator, -1) # Label for showing deck status - self.deck_label = gtk.Label("%d %s" % (96,_("cards remaining"))) + self.deck_label = gtk.Label("%d %s" % (DECKSIZE-DEAL, + _("cards remaining"))) self.deck_label.show() deck_toolitem = gtk.ToolItem() deck_toolitem.add(self.deck_label) @@ -253,8 +256,8 @@ class ProjectToolbar(gtk.Toolbar): separator.show() # Label for showing deck status - self.activity.deck_label = gtk.Label(\ - _("%d cards remain in the deck") % (96)) + self.activity.deck_label = gtk.Label("%d %s" % (DECKSIZE-DEAL, + _("cards remain in the deck"))) self.activity.deck_label.show() self.activity.deck_toolitem = gtk.ToolItem() self.activity.deck_toolitem.add(self.activity.deck_label) @@ -267,7 +270,7 @@ class ProjectToolbar(gtk.Toolbar): separator.show() # Label for showing match status - self.activity.match_label = gtk.Label(_("%d matches") % (0)) + self.activity.match_label = gtk.Label("%d %s" % (0,_("matches"))) self.activity.match_label.show() self.activity.match_toolitem = gtk.ToolItem() self.activity.match_toolitem.add(self.activity.match_label) |