468,168 Members | 1,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,168 developers. It's quick & easy.

Tkinter OptionMenu: width of items in menu

Hello,

The Tkinter OptionMenu widget has me a bit confused. I have set up an
OptionMenu to expand along the X axis as the window expands. What I
find though is that the width of the submenu displaying the list of
items in the menu does not expand.

This is the object I'm talking about:

<code>

popup = OptionMenu(master, StringVar(), "")
theObjectIAmTalkingAbout = popup["menu"]

</code>

When I click on the OptionMenu, I notice that the list of items is only
about as wide as the longest word in the list, even if the OptionMenu
width extends for the entire width of the screen. This not only looks
funny, but interferes with usability. (If you click on the right side
of the OptionMenu, you have to move the mouse over to the left to
highlight one of the choices in the list.)

Am I missing something? Does anyone know how to get the submenu (the
list) of an OptionMenu to expand as well? Thanks!

Mario

Jul 18 '05 #1
0 1502

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by stewart | last post: by
2 posts views Thread by Stewart Midwinter | last post: by
2 posts views Thread by Jeffrey Barish | last post: by
1 post views Thread by Martin | last post: by
1 post views Thread by erikober | last post: by
4 posts views Thread by Alex Hunsley | last post: by
2 posts views Thread by Chad | last post: by
1 post views Thread by viv1tyagi | last post: by
3 posts views Thread by joshdw4 | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.