Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- canvas = Canvas(root)
- canvas.pack()
- canvas.create_polygon([50, 50, 150, 50, 50, 150], fill="red", smooth=False)
- canvas.create_polygon([50, 50, 150, 50, 50, 150], fill="blue", smooth=True)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement