I have a snippet which creates an OptionMenu
widget.
...
options = (\'White\', \'Grey\', \'Black\', \'Red\', \'Orange\',
\'Yellow\'
optionmenu.configure(width=<YOUR_WIDTH_HERE>)
When you use the grid
command to place the widget in its parent, have the widget fill its cell (try sticky="ew"
)
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)
...