Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-10-17 01:12:23 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-10-17 01:12:23 (GMT)
commit769ddd2cb32b11ed76ef07232026d65e88a9bb36 (patch)
tree574224e1856957a76758496506e889cd7e75ef82 /gui.py
parentba6da3f4e9665e8bb8f6be64f09f40698980861a (diff)
add all files of version 2
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 8198b1a..996a047 100644
--- a/gui.py
+++ b/gui.py
@@ -41,8 +41,6 @@ class widget(pygame.sprite.Sprite):
def detect_click(self, mouseposition):
if mouseposition[0] > self.rect.left and mouseposition[0] < self.rect.right:
if mouseposition[1] > self.rect.top and mouseposition[1] < self.rect.bottom:
- print self.rect
- print mouseposition
return True
return False
@@ -80,6 +78,8 @@ class image(widget):
self.image, self.rect = fiftytwo.load_image(file, trans)
self.rect.x = position[0]
self.rect.y = position[1]
+ self.rect.w = size[0]
+ self.rect.h = size[1]
class button(widget):
def __init__(self, position, size, title):