Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
f138f60
Changing main file of the lib struct :
Jan 9, 2021
6a6276f
Remove typage hinting in docsting of functions and class. Remove usel…
Tim-ats-d Mar 6, 2021
d8c58b9
Rewrite of documentation in rst. Clarification in documentation. Add …
Tim-ats-d Mar 7, 2021
32541b1
Mardown correction in README
Tim-ats-d Mar 7, 2021
0316f52
Add git clone in installation processus
Tim-ats-d Mar 7, 2021
5324a63
Add more accurate instructions in CONTRIBUTING.md
Tim-ats-d Mar 8, 2021
4a6b1b1
Change Python version required
Tim-ats-d Mar 8, 2021
c663e99
Add better instructions in README, fix import in __init__.py
Tim-ats-d Mar 8, 2021
f0111e8
Change documentation struct, minor corrections
Tim-ats-d Mar 8, 2021
47b31da
Change title place in README.md
Tim-ats-d Mar 8, 2021
e67e32e
Complete rewriting of examples, add possibility to pass one curses te…
Tim-ats-d Mar 8, 2021
d0ece05
Fix title level in README.md, correction of dev release installation …
Tim-ats-d Mar 8, 2021
ea6ab5f
Fix typo in README.
Tim-ats-d Mar 10, 2021
a0cdec9
Update of supported Python versions in setup.p.py, fixed a bug that d…
Tim-ats-d Mar 10, 2021
5c23861
Remove activation of raw mode in TextBox.getkey.
Tim-ats-d Mar 10, 2021
52dec70
Improvement of examples, develop PanicError, change in README.
Tim-ats-d Mar 11, 2021
cd164d5
char_by_char and word_by_word methods of DialogBox now call their own…
Tim-ats-d Mar 11, 2021
a81f2f9
Add utils.rst in doc, document PanicError, re-formatting documentatio…
Tim-ats-d Mar 13, 2021
c39f808
Add frequently asked questions.
Tim-ats-d Mar 13, 2021
0782eaf
Optimization of text wrapping.
Tim-ats-d Mar 13, 2021
47bf0fe
Add a specific README in examples.
Tim-ats-d Mar 13, 2021
e537149
Add a specific README in examples.
Tim-ats-d Mar 13, 2021
9a3579c
Merge branch 'dev' of https://github.com/Tim-ats-d/Visual-dialog into…
Tim-ats-d Mar 14, 2021
ac4c30f
Added clarification in doc, improvement of examples.
Tim-ats-d Mar 14, 2021
d031be3
Add more precise type hinting in TextBox.
Tim-ats-d Mar 15, 2021
578674c
confirm_dialog_key and panic_key are now instance attributes of the T…
Tim-ats-d Mar 16, 2021
30c20cc
Rename choices_box.py to choices.py, remove useless imports.
Tim-ats-d Mar 17, 2021
f373143
Fix type hinting in utils.py, continuation of deletion of useless imp…
Tim-ats-d Mar 17, 2021
1df58b9
Adding an example in quickstart section of readme.
Tim-ats-d Mar 17, 2021
38559b5
Improving examples
Tim-ats-d Mar 17, 2021
d26b769
Fix typo.
Tim-ats-d Mar 17, 2021
a19406a
Add link in example readme, improve confrontation.py.
Tim-ats-d Mar 18, 2021
130179e
Configuration change for doc in conf.py, fix typo.
Tim-ats-d Mar 18, 2021
1d09544
Revert "Configuration change for doc in conf.py, fix typo."
Tim-ats-d Mar 18, 2021
8816de2
Configuration change for doc in conf.py, fix typo.
Tim-ats-d Mar 18, 2021
a1b434e
Fix project description for textinfo documentation in conf.py.
Tim-ats-d Mar 18, 2021
0239805
Fix fonts for latex documentation in conf.py.
Tim-ats-d Mar 18, 2021
487cb6b
Fix in setup.py.
Tim-ats-d Mar 19, 2021
e158935
Informations in setup.py are no longer harcoded.
Tim-ats-d Mar 19, 2021
5cd33c2
DialogBox arguments are no longer hardcoded, fix in docs.
Tim-ats-d Mar 21, 2021
88e38ab
Start writing documentation for the words_attr attribute.
Tim-ats-d Mar 21, 2021
777e872
Add kwargs documentation in DialogBox, add doc/build directory in .gi…
Tim-ats-d Mar 22, 2021
3e6574c
Many fix in doc, correction of warnings when documentation is generated.
Tim-ats-d Mar 22, 2021
d1a73a2
Rewriting of type hintings.
Tim-ats-d Mar 27, 2021
47e6836
Rename TextBox to BaseTextBox, add Numeric type hinting.
Tim-ats-d Mar 27, 2021
6c7504f
Rename argument `stdscr` to `win`, add CursesWindow, fix bug occured …
Tim-ats-d Mar 27, 2021
31f4a43
, change lib version number.
Tim-ats-d Mar 27, 2021
02439b5
Revert ", change lib version number."
Tim-ats-d Mar 27, 2021
7fded8a
Improve readme example, change DialogBox arg to , patch .gitignore, …
Tim-ats-d Mar 27, 2021
e59410a
Add doc for words_attr parameter.
Tim-ats-d Mar 29, 2021
199bd21
Merge branch 'dev' of https://github.com/Tim-ats-d/Visual-dialog into…
Tim-ats-d Mar 29, 2021
d84703e
Improve docstring of utils._make_chunk and utils.TextAttributes, fix …
Tim-ats-d Mar 29, 2021
e074bc0
Replace useless Numeric type hint by Number from numbers module.
Tim-ats-d Mar 29, 2021
b967aaf
Rename length variable to height.
Tim-ats-d Mar 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,132 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

.vscode
.idea
86 changes: 58 additions & 28 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,89 @@

## Setup your development environment

You need:
* `Python3.6`: you can install it by following [Python3's documentation](https://www.python.org/downloads/).
* `curses`: available in standard library of `Python` but it doesn't work out-of-the-box on Windows. See [this](https://www.devdungeon.com/content/curses-windows-python) explanations to install `curses` on Windows.
You need [all requirements](README#requirements).

## Branches

* main : stable releases.
* `main` : stable releases.
* `dev` : beta releases.

To fix a minor problem or add new features create a new branch in this form: `username-dev`.
Please test your code with `Python3.6` version before **pull request** to be sure not to break compatability.
Please push on the `dev` branch, any pull request on the `main` branch will be refused.

## Download
## Conventions

Download projet:
```bash
git clone https://github.com/Tim-ats-d/Visual-dialog
```
When you make a pull request make sure to:

Install Visual-dialog using `pip`:
```bash
python3 -m pip install git+git://github.com/Tim-ats-d/Visual-dialog
```
or update lib to the latest version:
```bash
python3 -m pip install git+git://github.com/Tim-ats-d/Visual-dialog --upgrade
* Test your code with `Python3.7` to be sure not to break compatability.
* Format your code according [PEP 8](https://www.python.org/dev/peps/pep-0008/). [PEP8 Check](https://github.com/quentinguidee/actions-pep8) will ensure that your code is correctly formatted .
* Document your code with [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) if you add new functionality.

If you add a feature that changes the API, notify it explicitly.

## Download

Download the `dev` branch of the project and install dev release:
```sh
git clone -b dev https://github.com/Tim-ats-d/Visual-dialog.git
cd Visual-dialog
pip install .
```
The list of versions and their changelogs can be found [here](https://github.com/Tim-ats-d/Visual-dialog/releases/).

## Repository Structure

The following snippet describes Visual-dialog's repository structure.
This tree does not contain a description of all the files in the repository, only the most relevant ones

```text
.
├── .github/
| Contains Github specific files such as actions definitions and issue templates.
Contains Github specific files such as actions definitions and issue templates.
├── doc/
| Contains documentation.
│ Contains the files related to the documentation.
│ │
│ ├── source/
│ │ Contains images used in documentation.
│ │ │
│ │ ├── images/
│ │ │ Contains images used in documentation.
│ │ │
│ │ ├── conf.py
│ │ │ Sphinx's configuration file.
│ │ │
│ │ ├── index.rst
│ │ │ Documentation home page.
│ │ │
│ │ └── visualdialog.rst
│ │ Documentation of all the public classes and methods in Visual-dialog.
│ │
│ ├── examples/
│ │ Contains several examples of how to use Visual-dialog.
│ ├── make.bat
│ │ To generate documentation on Windows.
│ │
│ └── documentation.md
│ Documentation of public API (coming soon).
│ └── Makefile
│ To generate documentation on GNU/Linux or MacOS.
├── examples/
│ Contains several examples of use cases of Visual-dialog.
├── tests/
│ Contains tests for debugging libraries.
├── visualdialog/
| Source for Visual-dialog's library.
│ Source for Visual-dialog's library.
│ │
│ ├── __init__.py
│ │
│ ├── box.py
│ │ Contains the parent class TextBox which serves as a basis for the implementation of the other classes.
│ │
| ├── __init__.py
│ ├── dialog.py
│ │ Contains the DialogBox class, which is the main class of the library.
│ │
| └── core.py
| Contains Visual-dialog's core functionnalities.
└── utils.py
Contains the classes and functions used but not related to the libriarie.
├── LICENSE
Expand All @@ -68,5 +98,5 @@ The following snippet describes Visual-dialog's repository structure.
├── README.md
└── setup.py
Installation of the library.
Installation of the library.
```
Loading