Skip to content
forked from Ksengine/Zenity

lightweight and full featured library to display dialogs with python.

License

Notifications You must be signed in to change notification settings

bcbernardo/Zenity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zenity

No nedd to improve this package. If anyone need to contribute, please inform to [email protected]

zenity is a Python library that will display GTK+ dialogs using zanity tool(this is not a Python zenity port), and return (eitherin the return code, or on standard output) the users input. This allows you to present information, and ask for infor mation from the user.

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

Example:

import zenity

res,_ = zenity.show(zenity.question,text="Is it ok?")

if res:
    print("it's ok")

Installation

pip install zenity

License

MIT. See LICENSE for details.

About

lightweight and full featured library to display dialogs with python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.9%
  • Shell 3.3%
  • Batchfile 2.8%