Post

Replies

Boosts

Views

Activity

Reply to Python tkinter Menu issue
I have the same issue. But I was able to shift focus to the python "window" by inserting this code: from os import system from platform import system as platformif platform() == 'Darwin': system('''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "python" to true' ''') Where the if statement is placed in the section of code where your tk.Frame of Window is generated. In my case it is placed in the class that generates the stacked frames used in my application. But the widowing focus issue remains the same for the top-level menubar. It is not clickable until focus is moved from my app, and refocusing on my app.
Nov ’20