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 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!')
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.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for showdialog-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe367cacfc64f5fc9dc341c6fb54f75e5e19f147af4ad443370edcaca6f81d68 |
|
MD5 | 9ed29d53232620a2a34c629964a5714c |
|
BLAKE2b-256 | b34d25981068737da8cb206b6e2cf279174729fbcd0cde18d147aeae10f4554c |