Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/window.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-11-29 22:23:53 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-11-29 22:23:53 (GMT)
commit1999ee23121fa78bda2dfe21bef5643a79b65af2 (patch)
tree82939ab56be1906b80143c8e6d8cfdcfdb8b5a8a /window.py
parent36787ae146159ac9573e9d81dcde0a5ef0f3b50f (diff)
fixed bug in grid status
Diffstat (limited to 'window.py')
-rw-r--r--window.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.py b/window.py
index 862d892..ec1200e 100644
--- a/window.py
+++ b/window.py
@@ -85,6 +85,7 @@ def new_window(canvas, path, parent=None):
tw.deck.shuffle()
tw.deck.deal(tw)
tw.matches = 0
+ tw.msg = ""
# initialize three card-selected overlays
for i in range(0,3):
@@ -206,6 +207,7 @@ def find_a_match(tw):
for i in Permutation(a):
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)
return True
return False