gorskaja2019

Untitled

Apr 10th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from tkinter import *
  2. root = Tk()
  3.  
  4. c = Canvas(root, width = 500, height = 500, bg = 'lightblue')
  5. c.pack()
  6.  
  7. #c.create_line(0, 0, 100, 100, width = 10, fill = 'green', activefill = 'red')
  8. c.create_rectangle(0,0,100,50, fill = 'orange', activefill='red', outline = 'green', width = 5)
  9. c.create_rectangle(0,50,100,100, fill = 'blue')
Add Comment
Please, Sign In to add comment