Simple module for showing GTK dialog
showdialog | ||
.gitignore | ||
.pylintrc | ||
LICENSE | ||
pyproject.toml | ||
README.md | ||
requirements.txt | ||
setup.py |
showdialog
Simple module for showing GTK dialog.
Install
pip install showdialog
Usage
showdialog.show_msg(title, text, sectext, btns, msgtype)
Opens GTK MessageDialog
Args
- title (
str
): Dialog caption - text (
Union[Tuple[Optional[str], bool], Optional[str]]
): Dialog primary text, str or tuple(text, use_markup)
- sectext (
Union[Tuple[Optional[str], bool], Optional[str]]
, optional): Dialog secondary text, str or tuple. Defaults toNone
. - btns (
Gtk.ButtonsType
, optional): Dialog buttons. Defaults toGtk.ButtonsType.OK
. - msgtype (
Gtk.MessageType
, optional): Dialog message type. Defaults toGtk.MessageType.INFO
.
Example:
from showdialog import show_msg
show_msg(title='', text='Hello world!')