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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenity_py-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c763ae753a431b2a039efe761acbf05e4e85bff86cd04cd083341310483431e
MD5 462d77332bb696c52d18e7bede8f732b
BLAKE2b-256 ae5b7c452404350d0992f144cdddc6f1f48d714cfc32c53056765b14f74c5414

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