Skip to main content

zenity_soso

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_soso import Info
dlg = Info(text = 'This is the message text', title = 'Some info')
dlg.show()

Ask a question:

from zenity_soso 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_soso import List
dlg = List(['Tom', 'Dick', 'Harry'])
res = dlg.show()
if res:
    print(f'Sending this off to {res} ...')

Pick a color:

from zenity_soso 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!

Download files

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

Source Distribution

zenity_soso-0.0.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenity_soso-0.0.0-py2.py3-none-any.whl (22.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zenity_soso-0.0.0.tar.gz.

File metadata

  • Download URL: zenity_soso-0.0.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for zenity_soso-0.0.0.tar.gz
Algorithm Hash digest
SHA256 6ace589551c73a201861217df3412d4322a4e6b7bb94befca040147cdef5decd
MD5 00f2005aa6e236dd2af9a2c48329722a
BLAKE2b-256 0957b8e79f72ecb464dcb8016a24fd27e59fcf36b4fa7dea20b21f2071d063bb

See more details on using hashes here.

File details

Details for the file zenity_soso-0.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: zenity_soso-0.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for zenity_soso-0.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 08775b199746adba25eb034f24016dcdae34c80fc41515c6275db89e87f2ee6e
MD5 fddf973bfafe2c38f4eedc40c008c527
BLAKE2b-256 917d426ea416963cb07a0508ff63d6208a76b1bb07141ce8499fb41b74534436

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

0.1.0

2 files

This release

0.0.0 This release

2 files

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