Skip to main content

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)

Uploaded Source

Built Distribution

showdialog-1.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page