I took the size arguments out. and use pack across the board,
you can add back)
You can use place, but then will have an issue with resizing.
you can add back)
You can use place, but then will have an issue with resizing.
from tkinter import * root = Tk() canvas = Canvas(root) canvas.pack() def button_function(event): print("hello") button = Button(root, text="button", font=("Helvetica", 25)) button.pack() button.bind('<Button-1>', button_function) root.mainloop()you forgot mainloop