Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- from Tkinter import *
- window = Tk()
- textfield = Entry(window)
- canvas = Canvas(window, width=640, height=480)
- def get(x, y):
- return True
- def make():
- for x in range(0, 107):
- for y in range(0, 17):
- if get(x, y):
- canvas.create_rectangle(x * 5, y * 5, 5, 5, fill="black")
- print y
- print textfield.get()
- button = Button(window, text="Make", command=make)
- window.title("Everything Overload")
- window.minsize(640, 480)
- window.maxsize(640, 480)
- textfield.pack()
- button.pack()
- canvas.pack()
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement