Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter
- import random
- Screen = tkinter.Canvas(width=1000, height=1000, bg=White)
- Screen.pack()
- (Screen.create_rectangle
- (
- 10, 10, # Lavy-horny roh
- 60, 60, # Pravy-dolny roh
- fill="red", # fill
- outline="black", # border farba
- width=3, # border hrubka
- ))
- (Screen.create_line
- (
- 10, 10, # Lavy-horny roh
- 60, 60, # Pravy-dolny roh
- fill="red", # fill
- outline="black", # border farba
- width=3, # border hrubka
- ))
- (Screen.create_oval
- (
- 10, 10, # Lavy-horny roh
- 60, 60, # Pravy-dolny roh
- fill="red", # fill
- outline="black", # border farba
- width=3, # border hrubka
- ))
- (Screen.create_text
- (
- 10, 10, # Lavy-horny roh
- 60, 60, # Pravy-dolny roh
- fill="red", # fill
- outline="black", # border farba
- width=3, # border hrubka
- ))
- Screen.mainloop()
Add Comment
Please, Sign In to add comment