diff frontends/wix/card_game.py @ 162:ae50b53ff868

misc Tarot fixes - wix, primitivus, quick_frontend: autoplay fonction is activated by changing self._autoplay from None to 0 in quick card game - primitivus: added forgotten import of log methods - primitivus: fix bad selected color for notification messages - primitivus: score are now shown
author Goffi <goffi@goffi.org>
date Fri, 06 Aug 2010 12:18:50 +0800
parents 74aaf230a7c3
children fd2db62ea5eb
line wrap: on
line diff
--- a/frontends/wix/card_game.py	Fri Aug 06 12:11:18 2010 +0800
+++ b/frontends/wix/card_game.py	Fri Aug 06 12:18:50 2010 +0800
@@ -121,7 +121,8 @@
 
         self._recalc_ori()
         self.Refresh()
-        wx.MessageDialog(self, _("Cards played are invalid !"), _("Error"), wx.OK | wx.ICON_ERROR).ShowModal()
+        if self._autoplay==None: #No dialog if there is autoplay
+            wx.MessageDialog(self, _("Cards played are invalid !"), _("Error"), wx.OK | wx.ICON_ERROR).ShowModal()
 
     def _is_on_hand(self, pos_x, pos_y):
         """Return True if the coordinate are on the hand cards"""