1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

- (temporary) removed animated flip

* some improvements


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@130 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
skomoroh 2006-12-26 22:13:45 +00:00
parent d9bdaa8717
commit 0b258a674a

View file

@ -802,7 +802,8 @@ class Game:
def undoHandler(self, event):
if not self.app: return EVENT_PROPAGATE # FIXME (GTK)
if self.stopWinAnimation(): return EVENT_PROPAGATE
if not self.event_handled and self.stopWinAnimation():
return EVENT_PROPAGATE
self._defaultHandler()
if self.demo:
self.stopDemo()
@ -814,7 +815,8 @@ class Game:
def redoHandler(self, event):
if not self.app: return EVENT_PROPAGATE # FIXME (GTK)
if self.stopWinAnimation(): return EVENT_PROPAGATE
if not self.event_handled and self.stopWinAnimation():
return EVENT_PROPAGATE
self._defaultHandler()
if self.demo:
self.stopDemo()
@ -1026,6 +1028,7 @@ class Game:
self.canvas.update_idletasks()
def animatedFlip(self, stack):
return False
if self.app.opt.animations == 0:
return False
if TOOLKIT == 'gtk':
@ -1216,7 +1219,7 @@ class Game:
# select some random cards
acards = []
scards = cards[:]
for i in range(12):
for i in range(8):
c, s = self.app.miscrandom.choice(scards)
if c not in acards:
acards.append(c)