Skip to main content

A Python library for the CLI tool zenity.

Project description

zenity-py - Zenity for Python

Exactly what it says it is.

How to install

Just type python3 -m pip install zenity-py and it should install just fine.

How to use

In a python file, type

from zenity import Zenity

# Zenity syntax - title, body, type, options[]
# the ! in !timeout means it is an option, not a value
z = Zenity("Title", "Body", "info", ["!timeout", 5])

This should create a new Zenity instance. Of course, this is an example, so you can change anything. After that, add

z.Open()

This should start up Zenity with the parameters you specified. If a zenity window doesn't appear, something went wrong. You can always print() the z variable, as the Zenity class returns both the status code and output.

If you want to know what arguments you can use, go over to the Zenity Manual. Do not add an option like !calendar or !password onto the options. Just change the type to "calendar" or "password".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenity_py-1.0.4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

zenity_py-1.0.4-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file zenity_py-1.0.4.tar.gz.

File metadata

  • Download URL: zenity_py-1.0.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for zenity_py-1.0.4.tar.gz
Algorithm Hash digest
SHA256 021f8f6a06455d818c8c5efc204f2530bf368d76877d6929197e2f5d6d659990
MD5 5cf199f48322dd4e3a894b85776cca5b
BLAKE2b-256 941034ac1c41a204b7d484912fc392c6b369485d5a813dc545910b008f106dde

See more details on using hashes here.

File details

Details for the file zenity_py-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: zenity_py-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for zenity_py-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a97141b20762dba8e1f03f1e1ac5d15fbb0fa6b4d33ce7c85e7070a7769e64c6
MD5 c472fbb954498e34f410933d093b3c5e
BLAKE2b-256 5426a5acf20db6f79719f620fe8f24523b28902332d464d51a7cc50e5d44300a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page