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 details)
Built Distribution
File details
Details for the file showdialog-1.0.3.tar.gz
.
File metadata
- Download URL: showdialog-1.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.62.3 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc78eb0f89d98b5584868b951a980f141bd2fd6c45cb307a61c89eab14fc1095 |
|
MD5 | 7950172b323a5455d8263643c267cccd |
|
BLAKE2b-256 | 6be5817e599fe854ea9cc5aefb4751551913337757cc73a1ef39c78259542709 |
File details
Details for the file showdialog-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: showdialog-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.62.3 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a2198d84ab56afbfc50fa1771f5d4245a4003ca69fa381e5dcbdcf78e22b2a |
|
MD5 | e827b3c755993d96218305c70d413cc5 |
|
BLAKE2b-256 | 7ae67b8f8f1b1168320ae8f3a754c8942f571760f9f66e39840d41b8704c096c |