agorodet
agorodet

Reputation: 41

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)

Upvotes: 3

Views: 2395

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386010

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

Upvotes: 2

Related Questions