diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-10-17 01:12:23 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-10-17 01:12:23 (GMT) |
commit | 769ddd2cb32b11ed76ef07232026d65e88a9bb36 (patch) | |
tree | 574224e1856957a76758496506e889cd7e75ef82 /gui.py | |
parent | ba6da3f4e9665e8bb8f6be64f09f40698980861a (diff) |
add all files of version 2
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |