SHARE
TWEET

2.3

a guest Dec 8th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Figures
  2. import pygame
  3. import math
  4.  
  5. # Задание высоты и ширины окна
  6. SCREEN_W = 1024
  7. SCREEN_H = 768
  8. # Ввод имени файла
  9. filename = input('Введите имя файла: ')
  10.  
  11. # Создание окна
  12. pygame.init()
  13. sc = pygame.display.set_mode((SCREEN_W, SCREEN_H))
  14. sc.fill((255, 255, 255))
  15.  
  16. # В Figures определена логика парсинга файла и вывода фигур на экран
  17. Figures.process_file(filename, sc, True, SCREEN_W, SCREEN_H)
  18. pygame.quit()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top