#!/bin/python
import pygame, sys
green = (0, 255, 0)
blue = (0, 0, 128)
red = (255, 0, 0)
pygame.init()
sc = pygame.display.set_mode((640, 500))
pygame.display.set_caption("Письмо на pygame")
while True:
sc.fill((125,125,125))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
pygame.draw.line(sc, (0,0,0), [10, 50], [490, 50], 3)
pygame.draw.line(sc, (0,0,0), [10, 300], [490, 300], 3)
pygame.draw.line(sc, (0,0,0), [10, 50], [10, 300], 3)
pygame.draw.line(sc, (0,0,0), [490, 50], [490, 300], 3)
pygame.draw.line(sc, (0,0,0), [10, 50], [490, 300], 3)
pygame.draw.line(sc, (0,0,0), [490, 50], [10, 300], 3)
pygame.display.flip()
|