The ttk.Combobox is used to create dropdown menus in the Entry Widgets. To create the options, we just simply pass the strings to the values object of combobox. We can disable the combobox by passing the state as “readonly”.
In the following example, we will create a combobox whose state is disabled.
Running the above code will display a window containing a combobox menu. We can select any option in the dropdown list.
Now add state = "readonly" in the Combobox object, it will make the Combobox Entry Widget disabled.