PEP8, mkdocs format, v1.0.2
This commit is contained in:
parent
69209f8b70
commit
60cabb92cf
3 changed files with 7 additions and 7 deletions
1
Makefile
1
Makefile
|
@ -7,6 +7,7 @@ upload:
|
|||
clean:
|
||||
rm -rf dist/
|
||||
rm -rf showdialog/__pycache__/
|
||||
rm -rf .mypy_cache/
|
||||
|
||||
check:
|
||||
python -m mypy .
|
||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with open('README.md', 'rt') as f:
|
|||
|
||||
setuptools.setup(
|
||||
name='showdialog',
|
||||
version='1.0.1',
|
||||
version='1.0.2',
|
||||
author='Chechkenev Andrey (@DarkCat09)',
|
||||
author_email='aacd0709@mail.ru',
|
||||
description='Simple module for showing GTK dialog',
|
||||
|
|
|
@ -17,15 +17,14 @@ def show_msg(
|
|||
sectext: TxtType = None,
|
||||
btns: Gtk.ButtonsType = Gtk.ButtonsType.OK,
|
||||
msgtype: Gtk.MessageType = Gtk.MessageType.INFO) -> None:
|
||||
|
||||
"""Opens GTK MessageDialog
|
||||
|
||||
Args:
|
||||
title (str): Dialog caption
|
||||
text (TxtType): Dialog primary text, str or tuple (text, use_markup)
|
||||
sectext (TxtType, 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.
|
||||
text (TxtType): Dialog primary text, str or tuple: `(text, use_markup)`
|
||||
sectext (TxtType, optional): Dialog secondary text, str or tuple
|
||||
btns (Gtk.ButtonsType, optional): Dialog buttons
|
||||
msgtype (Gtk.MessageType, optional): Dialog message type
|
||||
"""
|
||||
|
||||
if isinstance(text, str) or text is None:
|
||||
|
@ -41,7 +40,7 @@ def show_msg(
|
|||
secondary_text=sectxt[0],
|
||||
secondary_use_markup=sectxt[1],
|
||||
buttons=btns,
|
||||
message_type=msgtype
|
||||
message_type=msgtype,
|
||||
)
|
||||
|
||||
msg.connect(
|
||||
|
|
Loading…
Add table
Reference in a new issue