How to make a OptionMenu maintain the same width?

后端 未结 3 1626
北荒
北荒 2021-01-11 15:09

I have a snippet which creates an OptionMenu widget.

...
options = (\'White\', \'Grey\', \'Black\', \'Red\', \'Orange\', 
           \'Yellow\'         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 15:44

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

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

提交回复
热议问题