robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 114 forks source link

Button text not appearing until window is resized on MacOS #162

Open ndrake opened 5 years ago

ndrake commented 5 years ago

When using easygui enterbox and passwordbox , the button text does not appear until the user resizes the window.

This seems to be a tkinter issue, see here: https://stackoverflow.com/questions/52529403/button-text-of-tkinter-not-works-in-mojave/

The above posts includes a hack to fix it, by programmatically resizing the root window. I'm not sure how to accomplish this when using easygui components.

Anyone know of a workaround or if there is a way to fix this?

Here is a test program to demonstrate the issue:

import easygui
easygui.passwordbox(
    msg="Enter Password",
    title='Button Test')

Here are my relevant system details:

Here is a screenshot of the issue:

Screen Shot 2019-09-04 at 7 52 27 PM