Skip to content

Commit

Permalink
Fix the CHANGELOG.md and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulRaven committed Jun 10, 2024
1 parent b1d3130 commit 8b5b5d2
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push_to_main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: merge-to-main
name: 'Merge2Main'
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGELOG

## Version 1.0.0
## Version 1.0.1
- initial release
144 changes: 71 additions & 73 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
https://badge.fury.io/py/sgzenity.png
http://badge.fury.io/py/sgzenity
[https://badge.fury.io/py/sgzenity.png](http://badge.fury.io/py/sgzenity)

[![Merge2Main](https://github.com/SoftGeekRO/sgzenity/actions/workflows/push_to_main.yml/badge.svg?event=push)](https://github.com/SoftGeekRO/sgzenity/actions/workflows/push_to_main.yml)
[![Publish Python 🐍 distribution 📦 to PyPI and TestPyPI](https://github.com/SoftGeekRO/sgzenity/actions/workflows/publish_to_pypi.yml/badge.svg?event=release)](https://github.com/SoftGeekRO/sgzenity/actions/workflows/publish_to_pypi.yml)

.. image:: https://readthedocs.org/projects/sgzenity/badge/?version=latest
:target: http://sgzenity.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

# SGZenity

Expand All @@ -19,7 +18,7 @@ When you write scripts, you can use SGZenity to create simple dialogs that inter

## Installation

Install using pip :
Install using pip:

```bash
$ pip install sgzenity
Expand All @@ -45,8 +44,7 @@ print(result)
```
This code show a calendar dialog :

.. image:: docs/images/screen.png
:align: center
![dialog_01](docs/img/screen_01.png)

And display the result :

Expand All @@ -67,13 +65,13 @@ Parameters:

* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

```python
sgzenity.sgzenity.error(title='', text='', width=330, height=120, timeout=None)
Expand All @@ -85,13 +83,13 @@ Parameters:

* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

```python
sgzenity.sgzenity.warning(title='', text='', width=330, height=120, timeout=None)
Expand All @@ -103,13 +101,13 @@ Parameters:

* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

```python
sgzenity.sgzenity.question(title='', text='', width=330, height=120, timeout=None)
Expand All @@ -121,13 +119,13 @@ Parameters:

* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
The answer as a boolean
Expand All @@ -145,15 +143,15 @@ Parameters:

* **text** (*str*) – text inside the window

* **placeholder** (*str*) – placeholder for the input
* **placeholder** (*str*) – placeholder for the input

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
The content of the text input
Expand All @@ -171,15 +169,15 @@ Parameters:

* **text** (*str*) – text inside the window

* **placeholder** (*str*) – placeholder for the input
* **placeholder** (*str*) – placeholder for the input

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
The content of the text input
Expand All @@ -196,20 +194,20 @@ Parameters:

* **columns** (*list of strings*) – a list of columns name

* **items** (*list of strings*) – a list of values
* **items** (*list of strings*) – a list of values

* **print_columns** (*int** (**None if all the columns**)*) –
index of a column (return just the values from this column)
* **print_columns** (*int** (**None if all the columns**)*) –
index of a column (return just the values from this column)

* **text** (*str*) – text inside the window
* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
A row of values from the table
Expand All @@ -226,24 +224,24 @@ Parameters:

* **multiple** (*bool*) – allow multiple file selection

* **directory** (*bool*) – only directory selection
* **directory** (*bool*) – only directory selection

* **save** (*bool*) – save mode
* **save** (*bool*) – save mode

* **confirm_overwrite** (*bool*) – confirm when a file is
overwritten
* **confirm_overwrite** (*bool*) – confirm when a file is
overwritten

* **filename** (*str*) – placeholder for the filename
* **filename** (*str*) – placeholder for the filename

* **text** (*str*) – text inside the window
* **text** (*str*) – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
path of files selected.
Expand All @@ -261,19 +259,19 @@ Parameters:

* **text** (*str*) – text inside the window

* **day** (*int*) – default day
* **day** (*int*) – default day

* **month** (*int*) – default month
* **month** (*int*) – default month

* **text** – text inside the window
* **text** – text inside the window

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
(year, month, day)
Expand All @@ -292,15 +290,15 @@ Parameters:
* **show_palette** (*bool*) – hide/show the palette with
preselected colors

* **opacity_control** (*bool*) – allow to control opacity
* **opacity_control** (*bool*) – allow to control opacity

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
the color selected by the user
Expand All @@ -318,23 +316,23 @@ Parameters:

* **text** (*str*) – text inside window

* **value** (*int*) – current value
* **value** (*int*) – current value

* **min** (*int*) – minimum value
* **min** (*int*) – minimum value

* **max** (*int*) – maximum value
* **max** (*int*) – maximum value

* **step** (*int*) – incrementation value
* **step** (*int*) – incrementation value

* **draw_value** (*bool*) – hide/show cursor value
* **draw_value** (*bool*) – hide/show cursor value

* **title** (*str*) – title of the window
* **title** (*str*) – title of the window

* **width** (*int*) – window width
* **width** (*int*) – window width

* **height** (*int*) – window height
* **height** (*int*) – window height

* **timeout** (*int*) – close the window after n seconds
* **timeout** (*int*) – close the window after n seconds

Returns:
The value selected by the user
Expand Down

0 comments on commit 8b5b5d2

Please sign in to comment.