Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set width of menu widget using Tkinter

Using Python 2.7 and the Tkinter module, I have created a menubutton and assigned a menu to it. Now every time I post the menu in the specific location, the width of the menu is set automatically based on number of characters. Is there a way to set a static width in the menu widget?

The standard things I tried (such as the following) did not work.

self.menuwidget.config(width=80)
like image 551
agorodet Avatar asked May 31 '26 03:05

agorodet


1 Answers

No, there is no way to set the width of the menu.

like image 105
Bryan Oakley Avatar answered Jun 01 '26 15:06

Bryan Oakley