Skip to content

gh-159517: Do not use ::tk::unsupported::MacWindowStyle in IDLE on Tk 9.1 - #159527

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-159517-idle-macwindowstyle
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-159517-idle-macwindowstyle

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Tk 9.1 no longer provides ::tk::unsupported::MacWindowStyle. The calls in IDLE were wrapped in try/except TclError, so they are now silently ignored, and the completion list and the call tip can grab the focus on macOS again.

Use wm attributes -stylemask docmodal instead, as Tk itself does for its balloon window in library/systray.tcl.

Not tested on macOS.

… on Tk 9.1

Tk 9.1 no longer provides this command.  Use "wm attributes -stylemask
docmodal" instead, as Tk itself does for its balloon window.  The calls
were silently ignored, so the completion list and the call tip could
grab the focus on macOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant