Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- c = Canvas(root, width = 500, height = 500, bg = 'lightblue')
- c.pack()
- #c.create_line(0, 0, 100, 100, width = 10, fill = 'green', activefill = 'red')
- c.create_rectangle(0,0,100,50, fill = 'orange', activefill='red', outline = 'green', width = 5)
- c.create_rectangle(0,50,100,100, fill = 'blue')
Add Comment
Please, Sign In to add comment