简体   繁体   English

使用python如何管理OSX上的窗口

[英]Using python how do I manage windows on OSX

I am trying to manage windows using python. 我正在尝试使用python管理Windows。

Specifically I am trying to find a window that I have opened using selenium then have it focused and maximise it. 具体来说,我试图找到一个窗口,我已经使用selenium打开然后让它集中并最大化它。 I believe this is possible using a window manager as there are programs like qtile written in python. 我相信这是可能的使用窗口管理器,因为有像python编写的qtile程序。

I have read on the python documentation that there is something called pythonw. 我已经在python文档中读到有一些叫做pythonw的东西。

https://docs.python.org/3/using/mac.html https://docs.python.org/3/using/mac.html

I am using python 3.5 but I can upgrade if this is an easier option. 我正在使用python 3.5,但如果这是一个更容易的选项,我可以升级。

How do I use this on OSX? 我如何在OSX上使用它?

Is there a library or are there any more resources on this subject? 是否有图书馆或有关于此主题的更多资源?

I would like to learn how to use simple window management in python for osx. 我想学习如何在python中为osx使用简单的窗口管理。

Any help is appreciated. 任何帮助表示赞赏。

您需要一个系统级窗口管理器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM