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) |
Required |
sectext | Tuple[Optional[str], bool] | Optional[str] |
Dialog secondary text, str or tuple | None |
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.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for showdialog-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a2198d84ab56afbfc50fa1771f5d4245a4003ca69fa381e5dcbdcf78e22b2a |
|
MD5 | e827b3c755993d96218305c70d413cc5 |
|
BLAKE2b-256 | 7ae67b8f8f1b1168320ae8f3a754c8942f571760f9f66e39840d41b8704c096c |