Skip to content

Lightweight pure-Python package to show simple dialogs.

License

Notifications You must be signed in to change notification settings

flexxui/dialite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialite

Build Status Documentation Status

Dialite is a lightweight Python package to show dialogs. It provides a handful of functions, each a verb, that can be used to inform(), warn() or fail() the user, or to ask_ok(), ask_retry() or ask_yesno().

Dialite is pure Python, has no dependencies, and is written to work on Python 3 and Python 2.7. It works on Windows (from at least XP), Linux (most ones anyway, including Raspbian) and OS X.

Dialite provides a way to communicate with the user without needing a fancy (and heavy) GUI library. It's also much easier to package with tools like cx_Freeze and PyInstaller.

Example:

import dialite

res = dialite.ask_yesno('Troll question', 'Do you prefer VI over Emacs?')

if dialite.ask_ok('Confirm download', 'Will now download the resources.'):
    ...

Installation

pip install dialite

License

BSD 2-clause. See LICENSE for details.