From 000319fc748925ffa0a25eec52a14c4fced3095c Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 1 Nov 2020 08:41:37 -0800 Subject: [PATCH] fix README formatting issues --- README.md | 100 +++++++++++++++++++++++++++--------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index 20bd817..eb97d23 100644 --- a/README.md +++ b/README.md @@ -18,33 +18,33 @@ Table of Contents ----------------- - [Gooey](#gooey) - - [Table of Contents](#table-of-contents) - - [Quick Start](#quick-start) - - [Installation instructions](#installation-instructions) +- [Table of contents](#table-of-contents) +- [Latest Update](#latest-update) +- [Quick Start](#quick-start) + - [Installation Instructions](#installation-instructions) - [Usage](#usage) - [Examples](#examples) - - [What is it?](#what-is-it) - - [Why?](#why) - - [Who is this for?](#who-is-this-for) - - [How does it work?](#how-does-it-work) - - [Mappings:](#mappings) - - [GooeyParser](#gooeyparser) - - [Internationalization](#internationalization) - - [Global Configuration](#global-configuration) - - [Layout Customization](#layout-customization) - - [Run Modes](#run-modes) - - [Advanced](#advanced) +- [What It Is](#what-is-it) +- [Why Is It](#why) +- [Who is this for](#who-is-this-for) +- [How does it work](#how-does-it-work) +- [Internationalization](#internationalization) +- [Global Configuration](#global-configuration) +- [Layout Customization](#layout-customization) +- [Run Modes](#run-modes) + - [Full/Advanced](#advanced) - [Basic](#basic) - [No Config](#no-config) - - [Menus](#menus) - - [Input Validation](#input-validation) - - [Using Dynamic Values](#using-dynamic-values) - - [Showing Progress](#showing-progress) +- [Menus](#menus) +- [Input Validation](#input-validation) +- [Using Dynamic Values](#using-dynamic-values) +- [Showing Progress](#showing-progress) - [Elapsed / Remaining Time](#elapsed--remaining-time) - - [Customizing Icons](#customizing-icons) - - [Packaging](#packaging) - - [Screenshots](#screenshots) - - [Wanna help?](#wanna-help) +- [Customizing Icons](#customizing-icons) +- [Packaging](#packaging) +- [Screenshots](#screenshots) +- [Contributing](#wanna-help) +- [Image Credits](#image-credits) @@ -157,16 +157,16 @@ At run-time, it parses your Python script for all references to `ArgumentParser` Gooey does its best to choose sensible defaults based on the options it finds. Currently, `ArgumentParser._actions` are mapped to the following `WX` components. -| Parser Action | Widget | Example | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | -| store | TextCtrl | | -| store_const | CheckBox | | -| store_true | CheckBox | | -| store_False | CheckBox | | -| append | TextCtrl | | -| count | DropDown                  | | -| Mutually Exclusive Group | RadioGroup | | -| choice                                              | DropDown | | +| Parser Action | Widget | Example | +|:----------------------|-----------|------| +| store | TextCtrl | | +| store_const | CheckBox || +| store_true | CheckBox | | +| store_False | CheckBox| | +| append | TextCtrl | | +| count | DropDown                  | | +| Mutually Exclusive Group | RadioGroup | +|choice                                             | DropDown | | ### GooeyParser @@ -200,14 +200,14 @@ However, by dropping in `GooeyParser` and supplying a `widget` name, you can dis **Custom Widgets:** -| Widget | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| DirChooser, FileChooser, MultiFileChooser, FileSaver, MultiFileSaver |

| -| DateChooser/TimeChooser                                              |

Please note that for both of these widgets the values passed to the application will always be in [ISO format](https://www.wxpython.org/Phoenix/docs/html/wx.DateTime.html#wx.DateTime.FormatISOTime) while localized values may appear in some parts of the GUI depending on end-user settings.

| -| PasswordField |

| -| Listbox | ![image](https://github.com/chriskiehl/GooeyImages/raw/images/readme-images/31590191-fadd06f2-b1c0-11e7-9a49-7cbf0c6d33d1.png) | -| BlockCheckbox | ![image](https://github.com/chriskiehl/GooeyImages/raw/images/readme-images/46922288-9296f200-cfbb-11e8-8b0d-ddde08064247.png)
The default InlineCheck box can look less than ideal if a large help text block is present. `BlockCheckbox` moves the text block to the normal position and provides a short-form `block_label` for display next to the control. Use `gooey_options.checkbox_label` to control the label text | -| ColourChooser                                              |

| +| Widget | Example | +|----------------|------------------------------| +| DirChooser, FileChooser, MultiFileChooser, FileSaver, MultiFileSaver |

| +| DateChooser/TimeChooser                                             |

Please note that for both of these widgets the values passed to the application will always be in [ISO format](https://www.wxpython.org/Phoenix/docs/html/wx.DateTime.html#wx.DateTime.FormatISOTime) while localized values may appear in some parts of the GUI depending on end-user settings.

| +| PasswordField |

| +| Listbox | ![image](https://github.com/chriskiehl/GooeyImages/raw/images/readme-images/31590191-fadd06f2-b1c0-11e7-9a49-7cbf0c6d33d1.png) | +| BlockCheckbox | ![image](https://github.com/chriskiehl/GooeyImages/raw/images/readme-images/46922288-9296f200-cfbb-11e8-8b0d-ddde08064247.png)
The default InlineCheck box can look less than ideal if a large help text block is present. `BlockCheckbox` moves the text block to the normal position and provides a short-form `block_label` for display next to the control. Use `gooey_options.checkbox_label` to control the label text | +| ColourChooser                                             |

| @@ -306,9 +306,9 @@ You can achieve fairly flexible layouts with Gooey by using a few simple customi At the highest level, you have several overall layout options controllable via various arguments to the Gooey decorator. -| `show_sidebar=True` | `show_sidebar=False` | `navigation='TABBED'` | `tabbed_groups=True` | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| | | | | +| `show_sidebar=True` | `show_sidebar=False` | `navigation='TABBED'` | `tabbed_groups=True` | +|---------------------|----------------------|----------------------|------------------------| +| | | | | **Grouping Inputs** @@ -701,7 +701,7 @@ Gooey also supports tracking elapsed / remaining time when progress is used! Thi ```python @Gooey(progress_regex=r"^progress: (?P\d+)/(?P\d+)$", progress_expr="current / total * 100", - timing_options = { + timing_options = { 'show_time_remaining':True, 'hide_time_remaining_on_complete':True, }) @@ -743,13 +743,13 @@ Detailed step by step instructions can be found [here](http://chriskiehl.com/art Screenshots ------------ -| Flat Layout | Column Layout | Success Screen | Error Screen | Warning Dialog | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| | | | | | +| Flat Layout | Column Layout |Success Screen | Error Screen | Warning Dialog | +|-------------|---------------|---------------|--------------|----------------| +| | | | | | -| Custom Groups | Tabbed Groups | Tabbed Navigation | Sidebar Navigation | Input Validation | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| | | | | | +| Custom Groups | Tabbed Groups | Tabbed Navigation | Sidebar Navigation | Input Validation | +|-------------|---------------|---------------|--------------|----------------| +| | | | | |