An example how to use Tkinter's OptionMenu() as a combobox to allow one year to be selected from an option list of let's say the past 15 years.

Member Avatar
+2 forum 0

every combobox selection is replaced with what a user has selected, I want it not to be replaced so that all seleced combobox can be printed

Member Avatar
Member Avatar
+0 forum 3
Code Snippet ComboBox Woes

Upon resizing an anchored combobox - I noticed the text was always selected. This sparked the initiative to fix this problem. (Microsoft decided not to) So by extending the combobox class we can fix this. The following class can be dropped into a form for designer manipulation or as a user control. This is an extremely simple fix.

Member Avatar
+2 forum 0

The End.