pythondialog
raw JSON → 3.5.3 verified Fri May 01 auth: no python
A Python interface to the UNIX dialog utility (and mostly-compatible programs like whiptail). Current version 3.5.3, requires Python >=3. Stable, infrequent releases.
pip install pythondialog Common errors
error ModuleNotFoundError: No module named 'dialog' ↓
cause pythondialog is not installed or the import path is wrong.
fix
Run
pip install pythondialog and use from dialog import Dialog. error dialog: command not found ↓
cause The underlying dialog utility is missing.
fix
Install dialog:
sudo apt install dialog (Linux) or brew install dialog (macOS). Warnings
gotcha The `dialog` backend must be installed separately (e.g., `apt install dialog`). pythondialog wraps the system utility. ↓
fix Install dialog from your package manager (e.g., `sudo apt install dialog` or `brew install dialog`).
breaking The `setup.py` no longer supports Python 2. Python 2 support was dropped in version 3.5.0. ↓
fix Use Python 3.4+ (preferably 3.6+).
deprecated The `common_args_screen_size` parameter (used to force size calculation) is deprecated; use `autowidgetsize` instead. ↓
fix Replace `common_args_screen_size=True` with `autowidgetsize=True` in Dialog constructor.
Imports
- Dialog wrong
import dialogcorrectfrom dialog import Dialog
Quickstart
from dialog import Dialog
d = Dialog(dialog="dialog")
d.msgbox("Hello, world!")