I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Draw your initials

Tkinter is a library which allows you to draw and create user interfaces. Below is some code to draw an X on the screen

 

from Tkinter import *
# x marks the spot!

master = Tk()
w = Canvas(master, width=600, height=600)
w.pack()

# add you code between here. The lines below are examples
w.create_line(0, 0, 600, 600)
w.create_line(600, 0, 0, 600)

# do not change from this point onwards.
mainloop()

Your task is to take this code and modify it to allow you do draw your initials. You should only use create_line and tkinter.


You need to log in or create an account to submit code!

Leave a Reply

Your email address will not be published. Required fields are marked *

Information