In tkinter
, Buttons
have a parameter called command
which causes some function to run whenever the button is clicked.
Is the same possible to do with the options of a tkinter Combobox
?
For example :
I have three options in the tkinter Combobox
: #1
, #2
, #3
Now , As soon as #1
is or clicked , I want to print something like Options 1 Selected
.
Is it possible to do ?
P.S , As @Atlas435 pointed out about getting the selected value from the tk.Combobox()
, I really dont want the value of the Combobox()
, what I am asking is that whether there is way to make Combobox
options work like Buttons
which when clicked , causes some function to execute.