From 978f930a4c689d45538c105c116828a9698b016b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 29 Nov 2009 22:45:47 +0000 Subject: added help function --- diff --git a/NEWS b/NEWS index 098430d..9a978b9 100644 --- a/NEWS +++ b/NEWS @@ -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.")) diff --git a/window.py b/window.py index ec1200e..ef7d77d 100644 --- a/window.py +++ b/window.py @@ -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) -- cgit v0.9.1