Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/crazyeights.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-10-17 05:56:15 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-10-17 05:56:15 (GMT)
commit4d8e6b7605f1078465176d60171c004563c7abc3 (patch)
tree5ef4c4ebec8d3d20247de4ac79783d7ed1458830 /crazyeights.py
parentc92b8fcd245a03b0b9ca855e2d63ca4eb532ad37 (diff)
some changes that works with sugargame
Diffstat (limited to 'crazyeights.py')
-rwxr-xr-xcrazyeights.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/crazyeights.py b/crazyeights.py
index ac16f2f..95a7413 100755
--- a/crazyeights.py
+++ b/crazyeights.py
@@ -22,16 +22,13 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
############################################################################
+import gtk
import fiftytwo
from fiftytwo import card_width, card_height, UP, DOWN
import os, sys, math, random
import pygame
import pygame.font
from pygame.locals import *
-import olpcgames
-from olpcgames import pausescreen, mesh
-
-if not pygame.font: print "No fonts!"
import run
@@ -388,7 +385,11 @@ def main(playertypes, screensize):
deck.shuffle()
- for event in pausescreen.get_events():
+ while gtk.events_pending():
+ gtk.main_iteration()
+
+ for event in pygame.event.get():
+
if event.type == KEYDOWN:
if event.key == K_ESCAPE:
return
@@ -427,7 +428,7 @@ def main(playertypes, screensize):
elif event.type == QUIT:
return
- elif event.type == olpcgames.CONNECT:
+ """elif event.type == olpcgames.CONNECT:
print "Connect event."
pass
@@ -437,7 +438,7 @@ def main(playertypes, screensize):
elif event.type == olpcgames.PARTICIPANT_REMOVE:
print "Remove event."
- pass
+ pass"""
if players[whosturn].ai is 1 and cardprocessed is 1:
cready = 1