Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added experimental Linux support #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Processori7
Copy link

Adding Linux-specific code :
To _pygetwindow_linux.all the methods that are required to work with windows in Linux are implemented. The Zlib library is used to interact with the window manager. Support in init.py :
Added verification for the Linux platform (sys.platform.startswith("linux")). The necessary functions and classes are imported from _pygetwindow_linux. Functions for working with windows :
getActiveWindow: Returns the active window.
getAllWindows: Returns a list of all windows.
get Windows With Title: Finds windows by title.
getAllTitles: Returns the titles of all windows.

The code has been successfully tested on the latest version of Lubuntu, along with the latest versions of TKinter and CustomTkinter

To _pygetwindow_linux.all the methods that are required to work with windows in Linux are implemented.
The Zlib library is used to interact with the window manager.
Support in __init__.py :
Added verification for the Linux platform (sys.platform.startswith("linux")).
The necessary functions and classes are imported from _pygetwindow_linux.
Functions for working with windows :
getActiveWindow: Returns the active window.
getAllWindows: Returns a list of all windows.
get Windows With Title: Finds windows by title.
getAllTitles: Returns the titles of all windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant