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

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 to None. btns (Gtk.ButtonsType, optional): Dialog buttons. Defaults to Gtk.ButtonsType.OK. msgtype (Gtk.MessageType, optional): Dialog message type. Defaults to 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.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

showdialog-1.0.0-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