You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,19 @@ First off, my most sincere thanks and acknowledge to macdeport (https://github.c
3
3
PyGetWindow-MP (Multi-Platform)
4
4
==============================
5
5
6
-
This a fork from asweigart's PyGetWindow module (https://github.com/asweigart/PyGetWindow)
6
+
This is a fork from asweigart's PyGetWindow module (https://github.com/asweigart/PyGetWindow)
7
7
8
8
It adds Linux and macOS experimental support, in the hope others can use it, test it or contribute.
9
9
10
10
You can test it on your system by adding pygetwindow folder to your PYTHONPATH, and then executing: "pytest -vv test_pygetwindow.py" (script located within "tests" folder)
11
11
12
-
###IMPORTANT NOTICE:
12
+
###IMPORTANT NOTICE:
13
13
14
14
macOS doesn't "like" controlling windows from other apps, so there are two separate classes you can use.
15
+
15
16
One is based on NSWindow Objects (you have to pass the NSApp() Object. It means you have to be the "owner" of the app).
16
-
The other one is based on Apple Script, so it is not fully trustable, but it's working fine in most cases.
17
17
To test macOS NSWindow class, you can execute "python3 test_MacNSWindow.py" (also located within "test" folder)
18
+
19
+
The other one is based on Apple Script, so it is not fully trustable, but it's working fine in most cases.
20
+
This other class can be tested together with the others modules, as described above.
0 commit comments