Simple module for showing GTK dialog
Project description
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!')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
showdialog-1.0.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for showdialog-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d077f1fc03b8590630997cd07eeb4805c7ec6e4692d647ce4567964736969a1 |
|
MD5 | 0e1148a451365e62ae72aa302b91047a |
|
BLAKE2b-256 | 1e20fd7ec86a294aed3512d26cb27854a336b3a4141cdb8968a9562a09113d11 |