Skip to main content

zenity_judo

Python wrapper for zenity.

From the zenity manpage:

zenity is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users input. This allows you to present information, and ask for information from the user, from all manner of shell scripts.

For example, zenity --question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity --entry will output on standard output what the user typed into the text entry field.

Examples:

Show a message:

from zenity_judo import Info
dlg = Info(text = 'This is the message text', title = 'Some info')
dlg.show()

Ask a question:

from zenity_judo import Question
dlg = Question(text = 'Are you really <b>sure</b> you want to do that?',
    ok_label = 'Sure', cancel_label = 'No, not ever')
if dlg.show():
    print('Okay, you asked for it!')

(The above example illustrates the use of "Pango" markup. See: https://docs.gtk.org/Pango/pango_markup.html)

Choose one out of a list:

from zenity_judo import List
dlg = List(['Tom', 'Dick', 'Harry'])
res = dlg.show()
if res:
    print(f'Sending this off to {res} ...')

Pick a color:

from zenity_judo import Color_Selection
dlg = Color_Selection(color = "#00FF00")
res = dlg.show()
if res:
    print(f'Color me {res}')

Limitations

As of this moment, the Progress class is not finished. If you would like to contribute a solution, feel free to make a pull request!

Metadata

Release files for zenity-judo 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zenity-judo 1.0.4
File Size Uploaded Provenance
zenity_judo-1.0.4.tar.gz 20.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zenity-judo 1.0.4
File Interpreter ABI Platform
zenity_judo-1.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 40.7 kB

Release files / zenity_judo-1.0.4.tar.gz

Download URL zenity_judo-1.0.4.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c797e0a87260d8ba9f8ff35988c9a9a25a764aea50db8f2ccaf40f8ccc8419a5
BLAKE2b-256 checksum
How to use checksums
70802f9af2b2e1f4100c6180530d1170057c4cc519cee266631e152b8b3ce4f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / zenity_judo-1.0.4-py2.py3-none-any.whl

Download URL zenity_judo-1.0.4-py2.py3-none-any.whl
Size 19.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
72e627a78f52d0cea3ad7c0ea0bc34123b12beac3a2451c4746700ec58b044e5
BLAKE2b-256 checksum
How to use checksums
29a57aee0ac5d87dd54914922b0b1079f0a548091376f628fffcea0d4d2c1866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for zenity-judo 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page