[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-24 Thread DDavid
DDavid added the comment: Thanks for your help! I agree that it is probably a Tk issue. I will contact them and back with more information. -- ___ Python tracker ___

[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with E. Paine that you should use pack(fill="x") if you want to stretch a widget. And in any case Tkinter itself does not manage layout, it is just a wrapper around Tk, so if you think that the default layout of a button is wrong on some

[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: This should likely be closed as 3rd party zjdavid Which python release, which macOS, which installer, which tk patchlevel? (IDLE Help=>About displays it). At least one of the 3.9.1 python.org mac installers installs 8.6.10. We cannot be responsible for

[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-21 Thread E. Paine
E. Paine added the comment: I suspect this is just a MacOS behaviour, if not then it is a Tk bug. If you really need to enforce the width, you could tell it to expand horizontally in the layout. An example of this would be as follows: tk.Frame(root, height=1, width=300).pack()

[issue42977] Tkinter Optionmenu Too Narrow on Mac

2021-01-20 Thread DDavid
New submission from DDavid : Hello, I am building a program with Tkinter. However, I found the Optionmenu widget has inconsistent behaviors on default lengths on a Mac and a Windows PC. So I set the width of an optionmenu through menu.configure(width=70). On Windows, this correctly sets