diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-11-29 22:45:47 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-11-29 22:45:47 (GMT) |
commit | 978f930a4c689d45538c105c116828a9698b016b (patch) | |
tree | 1ea6e3a149bfc57e12bc2bc10b237ec2eeebe6a0 | |
parent | 1999ee23121fa78bda2dfe21bef5643a79b65af2 (diff) |
added help function
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | VisualMatchActivity.py | 3 | ||||
-rw-r--r-- | window.py | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +5 + +* added search function + 4 * add 3 cards when you get stuck diff --git a/VisualMatchActivity.py b/VisualMatchActivity.py index fb7233a..6b41463 100644 --- a/VisualMatchActivity.py +++ b/VisualMatchActivity.py @@ -202,7 +202,8 @@ class VisualMatchActivity(activity.Activity): def show_button3(self, tw): if window.find_a_match(tw) is True: - tw.activity.status_label.set_text(_("Keep looking.") + " " + tw.msg) + tw.activity.status_label.set_text(_("Keep looking.")) + print tw.msg else: tw.activity.status_label.set_text(_("No matches found.")) @@ -204,7 +204,7 @@ def _destroy_cb(win, event, tw): # def find_a_match(tw): a = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14] - for i in Permutation(a): + for i in Permutation(a): # really should be Combination cardarray = [tw.deck.grid[i[0]],tw.deck.grid[i[1]],tw.deck.grid[i[2]]] if match_check(cardarray) is True: tw.msg = str(i) |