如何使Tkinter窗口跳到前面?在mainloop()之后

2024-09-26 18:16:29 发布

您现在位置:Python中文网/ 问答频道 /正文

当Tkinter应用程序最小化到dock时,如何让它跳到前端? 我使用: os.system('''/usr/bin/osascript -e 'tell app "Finder" to set frontmost of process "autoinstall" to true' ''') 我发现它可以重新打开Safair,但不能打开Tkinter应用程序,因为这段代码在mainloop()之后调用 处理我的情况最好的方法是什么


Tags: oftoapp应用程序binfinderostkinter

热门问题