Simple module for showing GTK dialog
Find a file
2022-11-01 16:41:20 +04:00
showdialog PEP8, mkdocs format, v1.0.2 2022-11-01 16:38:34 +04:00
.gitignore First commit 2022-08-10 13:42:34 +04:00
.pylintrc Some changes in Pylint config 2022-11-01 16:41:20 +04:00
LICENSE First commit 2022-08-10 13:42:34 +04:00
Makefile Some changes in Pylint config 2022-11-01 16:41:20 +04:00
pyproject.toml First commit 2022-08-10 13:42:34 +04:00
README.md Args in a table 2022-11-01 16:25:59 +04:00
requirements.txt First commit 2022-08-10 13:42:34 +04:00
setup.py PEP8, mkdocs format, v1.0.2 2022-11-01 16:38:34 +04:00

showdialog

Simple module for showing GTK dialog.

Install

pip install showdialog

Usage

showdialog.show_msg(title, text, sectext, btns, msgtype)

Opens GTK MessageDialog

Args

Name Type Description Default value
title str Dialog caption Required
text `Tuple[Optional[str], bool] Optional[str]` Dialog primary text, str or tuple: (text, use_markup)
sectext `Tuple[Optional[str], bool] Optional[str]`, optional Dialog secondary text, str or tuple
btns Gtk.ButtonsType Dialog buttons Gtk.ButtonsType.OK
msgtype Gtk.MessageType Dialog message type Gtk.MessageType.INFO

Example:

from showdialog import show_msg
show_msg(title='', text='Hello world!')