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.

BUT, you need to also check if Zenity is installed. Type in the Command Prompt/Terminal: zenity. If this is the output you get:

You must specify a dialog type. See 'zenity --help' for details

then you're good to go and you can get to using zenity-py.

If it says something like zsh: command not found: zenity or 'zenity' is not recognized as an internal or external command, operable program or batch file., then you don't have it installed.

How to install Zenity - Linux/Mac

On Linux, use your system's package manager or Homebrew to install it. Example: sudo apt install zenity

On Mac, use Homebrew to install it. Example: brew install zenity

How to install Zenity - Windows

Install MinGW then search for Zenity in it. I don't use Windows anymore and I never really used MinGW for any other stuff other then make, so that's all i'm saying.

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.7.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

zenity_py-1.0.7-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenity_py-1.0.7.tar.gz
  • Upload date:
  • Size: 2.7 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.7.tar.gz
Algorithm Hash digest
SHA256 21b120d03fae57cce99be5899e07275b7b63aa3f5d5784423588b35a50538d4b
MD5 9884ac68f8df40e49a337f056156b8a8
BLAKE2b-256 f01e7cbbd61f2521228b3926e47f9bb6e7633a5b3e8f98df69864e6077c75109

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenity_py-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0db8cfbda255ff6ba3bac314aeb5dfc6c25bbaeff032cf748e515354e0095d8e
MD5 ed02c1dbf8d4ac3268d1000389386c68
BLAKE2b-256 9a034f93f4b9dc5be5d77fc949b71855b44d3c9a7a811f4683cc22df2a3df51f

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