diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-05-06 23:17:14 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-05-06 23:17:14 (GMT) |
commit | 00a33961baf489f192eecd6593f40f48b6e749c2 (patch) | |
tree | 12f99a8ca600c0c76bbc5f91bea9783c3a99e915 |
add first file
-rw-r--r-- | main.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ + + + +import pygame + +self.screen = pygame.display.set_mode((1200, 900)) + + +pygame.draw.rect(self.captura_to_show, (0,0,255), (p[0]*self.c1, p[1]*self.c2, 5, 5), 5) + +self.display.fill((84, 185, 72)) + +pygame.display.flip() + + +class Main: + + def __init__(self, parent): + + + run = True + while run: + while gtk.events_pending(): + gtk.main_iteration() + for event in pygame.event.get(): + if event.type == pygame.QUIT: + run = False |