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
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!')
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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for showdialog-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db7980166a130b1698360c033b676df39968dcfa1f9d9e18c154586ac64b1435 |
|
MD5 | a73676dbc13f3cecfb76f583244a0eae |
|
BLAKE2b-256 | 0ac9143ce53972ad970011d63c843373e4bdcd675c94a4aae3d4877b264ef8a5 |