Filipinex

Untitled

May 7th, 2024
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.02 KB | None | 0 0
  1. import tkinter
  2. import random
  3.  
  4. Screen = tkinter.Canvas(width=1000, height=1000, bg=White)
  5. Screen.pack()
  6.  
  7. (Screen.create_rectangle
  8. (
  9.     10, 10,             # Lavy-horny roh
  10.     60, 60,             # Pravy-dolny roh
  11.     fill="red",         # fill
  12.     outline="black",    # border farba
  13.     width=3,            # border hrubka
  14. ))
  15.  
  16. (Screen.create_line
  17. (
  18.     10, 10,             # Lavy-horny roh
  19.     60, 60,             # Pravy-dolny roh
  20.     fill="red",         # fill
  21.     outline="black",    # border farba
  22.     width=3,            # border hrubka
  23. ))
  24.  
  25. (Screen.create_oval
  26. (
  27.     10, 10,             # Lavy-horny roh
  28.     60, 60,             # Pravy-dolny roh
  29.     fill="red",         # fill
  30.     outline="black",    # border farba
  31.     width=3,            # border hrubka
  32. ))
  33.  
  34. (Screen.create_text
  35. (
  36.     10, 10,             # Lavy-horny roh
  37.     60, 60,             # Pravy-dolny roh
  38.     fill="red",         # fill
  39.     outline="black",    # border farba
  40.     width=3,            # border hrubka
  41. ))
  42.  
  43. Screen.mainloop()
Add Comment
Please, Sign In to add comment