Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter 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)
commit978f930a4c689d45538c105c116828a9698b016b (patch)
tree1ea6e3a149bfc57e12bc2bc10b237ec2eeebe6a0
parent1999ee23121fa78bda2dfe21bef5643a79b65af2 (diff)
added help function
-rw-r--r--NEWS4
-rw-r--r--VisualMatchActivity.py3
-rw-r--r--window.py2
3 files changed, 7 insertions, 2 deletions
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)