Nov-04-2020, 02:27 PM
(Nov-03-2020, 07:00 PM)deanhystad Wrote: Please provide an example when you ask a question. The example can be very short. Like this:
from tkinter import * root = Tk() button = Button(root, text='Push Me') button.pack(side=LEFT, anchor='se', padx=10, pady=10)Learn how to use the good tkinter layout managers (pack and grid). Banish the bad layout manager (place).
Okay, here is my code:
icons = {} icons['menu'] = PhotoImage(file = "icons/initmenu.gif") button = Button(a, image=icons['menu'], command=open) button.place(x=2, y=10, anchor=N)