How to make a OptionMenu maintain the same width? How to make a OptionMenu maintain the same width? tkinter tkinter

How to make a OptionMenu maintain the same width?


To the best of my knowledge, you can use optionmenu.config(width=<YOUR_WIDTH>) as follows:

...optionmenu = OptionMenu(par, var, *options)optionmenu.config(width=<YOUR_WIDTH>)optionmenu.grid(column=column, row=row)...


When you use the grid command to place the widget in its parent, have the widget fill its cell (try sticky="ew")


optionmenu.configure(width=<YOUR_WIDTH_HERE>)