Add files via upload

This commit is contained in:
themixray 2021-11-02 13:12:01 +03:00 committed by GitHub
parent 30335803c9
commit 87301f4d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 786 additions and 0 deletions

22
main.py Normal file
View file

@ -0,0 +1,22 @@
import pygwin
import random
win = pygwin.create(size=(500,500))
font = pygwin.defaultFont
run = True
while run:
for event in pygwin.getEvents():
if event.type == pygwin.QUIT:
run = False
win.fill((255,255,255))
text = font.render(win.fps, 25, (0,0,0))
text = pygwin.image.toString(text)
win.blit(text,(0,0))
text = pygwin.image.fromString(text)
win.blit(text,(0,50))
win.update(60)
pygwin.close()