Python:如何在 mac 中获取 window 大小和位置
Python: how to get window size and location in mac
如何使用 python 获取 mac 中活动 window 的大小和位置?
免责声明:我没有 mac 可以测试。
看来你可以用 applescript 做到这一点:
tell application "Finder" to get position of front window
并设置:
tell application "Finder" to set {x, y} to position of front window
有关更多信息,请参阅 command reference。
如何使用 python 获取 mac 中活动 window 的大小和位置?
免责声明:我没有 mac 可以测试。
看来你可以用 applescript 做到这一点:
tell application "Finder" to get position of front window
并设置:
tell application "Finder" to set {x, y} to position of front window
有关更多信息,请参阅 command reference。