Simple module for showing GTK dialog
Find a file
2022-11-01 16:20:36 +04:00
showdialog Makefile, MyPy error fix 2022-11-01 16:20:36 +04:00
.gitignore First commit 2022-08-10 13:42:34 +04:00
.pylintrc First commit 2022-08-10 13:42:34 +04:00
LICENSE First commit 2022-08-10 13:42:34 +04:00
Makefile Makefile, MyPy error fix 2022-11-01 16:20:36 +04:00
pyproject.toml First commit 2022-08-10 13:42:34 +04:00
README.md Corrected Readme 2022-08-10 13:50:06 +04:00
requirements.txt First commit 2022-08-10 13:42:34 +04:00
setup.py Corrected Readme 2022-08-10 13:50:06 +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

  • 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 to None.
  • btns (Gtk.ButtonsType, optional): Dialog buttons. Defaults to Gtk.ButtonsType.OK.
  • msgtype (Gtk.MessageType, optional): Dialog message type. Defaults to Gtk.MessageType.INFO.

Example:

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