Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Sugargame
(view source)
Revision as of 12:34, 27 June 2010
84 bytes added
,
12:34, 27 June 2010
→Adding Pygame to a PyGTK activity
Line 102:
Line 102:
pygame.display.set_mode(event.size, pygame.RESIZABLE)
pygame.display.set_mode(event.size, pygame.RESIZABLE)
+
# Check the mouse position
+
x, y = pygame.mouse.get_pos()
+
# Clear Display
# Clear Display
screen.fill((255,255,255)) #255 for white
screen.fill((255,255,255)) #255 for white
Wade
273
edits