Tips¶
- PyGetWindow does not support Linux currently.
Installation¶
pip3 install pyobjc-framework-quartz pygetwindow
In [1]:
import pygetwindow as pygw
In [ ]:
PyGetWindow.getAllTitles¶
PyGetWindow.getWindowGeometry¶
Get the geometry information (x, y, w, h) of a window,
where (x, y)
is the coordinate of the upper-left pixle of the window
and w
and h
are the width and height of the window.
The bounding box of the window can be calculated as (x, y, x + w, y + h)
.
PyGetWindow.getActiveWindow¶
PyGetWindow.getWindowsAt¶
PyGetWindow.isMinimized¶
pyGetWindow.isVisible¶
pyGetWindow.pointInRect¶
pyGetWindow.activate¶
In [ ]: