summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f96fb4a)
def __init__(self) :
app = Desktop()
def __init__(self) :
app = Desktop()
home = Home()
home.connect(QUIT, app.quit)
app.run(home)
home = Home()
home.connect(QUIT, app.quit)
app.run(home)
pygame.event.set_allowed(pygame.MOUSEMOTION)
# ---
x, y = pygame.mouse.get_pos()
pygame.event.set_allowed(pygame.MOUSEMOTION)
# ---
x, y = pygame.mouse.get_pos()
- print 'mouse pos :', x, y
left = x - self.width / 2
top = y - self.height / 2
self.rect = pygame.Rect((left, top), (self.width, self.height))
left = x - self.width / 2
top = y - self.height / 2
self.rect = pygame.Rect((left, top), (self.width, self.height))