PyQt utility that takes screenshots.
Project description
Zala
Zala is a screenshot tool designed to capture images of your desktop. It has options to capture a specific region of the screen. Built using PyQt, Zala can be integrated into Python projects as a dependency.
If you're looking for a standalone program to create screenshots and don't plan to integrate it into a PyQt project, consider using maim. Maim is written in a more efficient language.
Install
pipx install zala
Python usage
Zala can be integrated into PyQt6 projects as a library. The example below shows how to capture a screenshot and let the user select a region.
import sys
from PyQt6.QtWidgets import QApplication
from zala.main_window import ZalaSelect
from zala.screenshot_preview import UserSelectionResult
from zala.screenshot import ZalaScreenshot
def main() -> None:
app = QApplication(sys.argv)
scr = ZalaScreenshot(app)
def on_selection_finished(result: UserSelectionResult) -> None:
if result.pixmap:
result.pixmap.save("screenshot.png")
app.quit()
sel = ZalaSelect(scr.capture_screen())
sel.selection_finished.connect(on_selection_finished)
sel.showFullScreen()
app.exec()
if __name__ == "__main__":
main()
Bash examples
Take a region of the screen.
zala select
Verbose mode.
zala select -v
Show commands.
zala
Who uses Zala
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zala-26.4.26.0.tar.gz.
File metadata
- Download URL: zala-26.4.26.0.tar.gz
- Upload date:
- Size: 221.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64bc07c88ea79a223d971556559ddcacb7997e6761a1665a67766050d5c91bfb
|
|
| MD5 |
f056a58d00a7b819cc9fbfdbf2fa79b3
|
|
| BLAKE2b-256 |
36ce4b3a7cefda3192d3861617d9349aaf5644851f377481f7c4748567b2e3b7
|
Provenance
The following attestation bundles were made for zala-26.4.26.0.tar.gz:
Publisher:
release.yml on Ajatt-Tools/zala
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zala-26.4.26.0.tar.gz -
Subject digest:
64bc07c88ea79a223d971556559ddcacb7997e6761a1665a67766050d5c91bfb - Sigstore transparency entry: 1390799291
- Sigstore integration time:
-
Permalink:
Ajatt-Tools/zala@e4776764c828f2fb8de69714bbc23d2fccafadb4 -
Branch / Tag:
refs/tags/v26.4.26.0 - Owner: https://github.com/Ajatt-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e4776764c828f2fb8de69714bbc23d2fccafadb4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zala-26.4.26.0-py3-none-any.whl.
File metadata
- Download URL: zala-26.4.26.0-py3-none-any.whl
- Upload date:
- Size: 222.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
995d72493fc36b6097b8db594b7956c5f87de326c57b851d00d8cb4a973bb0d1
|
|
| MD5 |
a58fa178c0a8bcf1d22e3e56c979e6de
|
|
| BLAKE2b-256 |
7cfa5137c2b71122359fbe93ec7716372517b8423c225114260e101e7edf4e40
|
Provenance
The following attestation bundles were made for zala-26.4.26.0-py3-none-any.whl:
Publisher:
release.yml on Ajatt-Tools/zala
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zala-26.4.26.0-py3-none-any.whl -
Subject digest:
995d72493fc36b6097b8db594b7956c5f87de326c57b851d00d8cb4a973bb0d1 - Sigstore transparency entry: 1390799407
- Sigstore integration time:
-
Permalink:
Ajatt-Tools/zala@e4776764c828f2fb8de69714bbc23d2fccafadb4 -
Branch / Tag:
refs/tags/v26.4.26.0 - Owner: https://github.com/Ajatt-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e4776764c828f2fb8de69714bbc23d2fccafadb4 -
Trigger Event:
push
-
Statement type: