Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- button = ImageTk.PhotoImage(file="button.png")
- canvas = tk.Canvas(width=200, heigh=200, borderwidth=0, highlightthickness=0)
- canvas.grid()
- canvas.create_rectangle(0,0,199,199, fill="blue")
- canvas.create_image(0,0, image=button, anchor="nw")
- button = ImageTk.PhotoImage(file="button.png")
- canvas = tk.Canvas(width=200, heigh=200, borderwidth=0, highlightthickness=0)
- canvas.grid()
- canvas.create_rectangle(0,0,199,199, fill="blue")
- buton = tk.Button(root, image=button)
- canvas.create_window(0,0, window=buton, anchor="nw")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement