From 69209f8b70d39003a239ea68f5d541011cbe5f3d Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 1 Nov 2022 16:25:59 +0400 Subject: [PATCH] Args in a table --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d746898..2e56a22 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,13 @@ pip install showdialog 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`. +|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]`, optional|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: ```python