[New-bugs-announce] [issue42977] Tkinter Optionmenu Too Narrow on Mac

DDavid report at bugs.python.org
Wed Jan 20 09:48:54 EST 2021


New submission from DDavid <zjdavid.2003 at gmail.com>:

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 the menu width to 70 when the program runs. However, on a Mac, the menu is still very narrow at the start. It only expands to 70 after I select an option. 

I have attached a screenshot to help explain the issue. It does not occur on Windows.

----------
components: Tkinter
files: TKinter Menu issue.png
messages: 385345
nosy: zjdavid
priority: normal
severity: normal
status: open
title: Tkinter Optionmenu Too Narrow on Mac
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49752/TKinter Menu issue.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42977>
_______________________________________


More information about the New-bugs-announce mailing list