Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added experimental Linux support#58

Open
Processori7 wants to merge 1 commit into
asweigart:master from
Processori7:experimental_Linux_support
Open

Added experimental Linux support #58
Processori7 wants to merge 1 commit into
asweigart:master from
Processori7:experimental_Linux_support

Conversation

@Processori7

@Processori7 Processori7 commented Feb 2, 2025

Copy link
Copy Markdown

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

AI-Enthusiast and xaviergurram reacted with thumbs up emoji iHad168, Wastus, and zerezhka reacted with heart emoji
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /