Python Forum

Full Version: How can I make buttons appear depending on the current index of a Combobox?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a ttk Combobox with
values=('A','B','C','D')
how can i make buttons and other widgets appear and disappear based on the current option of the Combobox
Use the grid or pack geometry manager and the forget option.
(Jul-28-2019, 06:27 PM)woooee Wrote: [ -> ]Use the grid or pack geometry manager and the forget option.

How would I do that with
Combobox.current(0)
so i write something along the lines of

if combobox1.current(0):
   Label(text='HELLO').place(x=50,y=100,anchor=NW)