Skip to content

Commit 09b01de

Browse files
authored
Visual-dialog 0.9
2 parents 3fd2355 + cc44069 commit 09b01de

25 files changed

+666
-687
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ This tree does not contain a description of all the files in the repository, onl
4949
│ ├── source/
5050
│ │ Contains images used in documentation.
5151
│ │ │
52-
│ │ ├── images/
53-
│ │ │ Contains images used in documentation.
54-
│ │ │
5552
│ │ ├── conf.py
5653
│ │ │ Sphinx's configuration file.
5754
│ │ │
@@ -79,10 +76,16 @@ This tree does not contain a description of all the files in the repository, onl
7976
│ ├── __init__.py
8077
│ │
8178
│ ├── box.py
82-
│ │ Contains the parent class TextBox which serves as a basis for the implementation of the other classes.
79+
│ │ Contains the parent class BaseTextBox which serves as a basis for the implementation of the other classes.
8380
│ │
8481
│ ├── dialog.py
85-
│ │ Contains the DialogBox class, which is the main class of the library.
82+
│ │ Contains DialogBox class, which is the main class provides by the library.
83+
│ │
84+
│ ├── error.py
85+
│ │ Contains exceptions raised by the library.
86+
│ │
87+
│ ├── type.py
88+
│ │ Contains custom type hinting used by the library.
8689
│ │
8790
│ └── utils.py
8891
│ Contains the classes and functions used but not related to the libriarie.

LICENSE

Lines changed: 161 additions & 335 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pip install sphinx sphinx_rtd_theme
6969

7070
### Hello world with **Visual-dialog**
7171

72-
```python3
72+
```py3
7373
import curses
7474

7575
from visualdialog import DialogBox
@@ -84,8 +84,8 @@ def main(win):
8484
textbox = DialogBox(x, y,
8585
height, width,
8686
title="Demo")
87-
textbox.char_by_char(win,
88-
"Hello world")
87+
textbox.char_by_char("Hello world",
88+
win)
8989

9090

9191
curses.wrapper(main)
@@ -126,8 +126,7 @@ You can also help by reporting **bugs**.
126126

127127
## License
128128

129-
Distributed under the **GPL-2.0 License**. See [license](LICENSE) for more information.
130-
129+
Distributed under the **LGPL-3.0 License**. See [license](LICENSE) for more information.
131130

132131
## Acknowledgements
133132

doc/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ API documentation
55
:maxdepth: 2
66

77
visualdialog.rst
8+
error.rst
89
utils.rst

doc/source/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
"display_version": True
5656
}
5757

58-
html_logo = "_static/visual-dialog.png"
59-
60-
latex_logo = "_static/visual-dialog.png"
61-
6258
latex_elements = {
6359
"pointsize": "12pt"
6460
}

doc/source/error.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Exceptions
2+
==========
3+
4+
**Visual-dialog** defined several exceptions raised by library.
5+
6+
.. autoexception:: visualdialog.error.ValueNotInBound
7+
8+
.. autoexception:: visualdialog.error.PanicError

doc/source/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ You can use this behavior to perform multiple tasks while text scrolling.
1818
I am not satisfied with the behavior of DialogBox, how can I change it?
1919
-----------------------------------------------------------------------
2020

21-
You can create your own derived class by inheriting from ``BaseTextBox``.
22-
Additionally, you can override the methods of ``DialogBox``.
21+
You can create your own derived class by inheriting from :class:`BaseTextBox`.
22+
Additionally, you can override the methods of :class:`DialogBox`.

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Welcome to Visual-dialog's documentation
2020
- Text coloring and formatting.
2121
- Hackable and configurable.
2222

23-
.. IMPORTANT::
23+
.. important::
2424
I recommend that you have some knowledge of Python ``curses`` module in order to use the library to its full potential.
2525

2626
Here several links to learn ``curses``:
@@ -32,7 +32,7 @@ Getting started
3232
---------------
3333

3434
- **First steps:**
35-
- **Examples:** Many examples are available in the `repository <https://github.com/Tim-ats-d/Visual-dialog/issues>`_.
35+
- **Examples:** Many examples are available in the `repository <https://github.com/Tim-ats-d/Visual-dialog/tree/main/examples>`_.
3636

3737
Getting help
3838
------------

doc/source/installation.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ Using PIP
66

77
Install **Visual-dialog** using ``pip`` (The lib is not yet available on **pypi**):
88

9-
.. code-block::
9+
.. code-block:: text
1010
1111
pip install git+git://github.com/Tim-ats-d/Visual-dialog
1212
1313
or update library to the latest version:
1414

15-
.. code-block::
15+
.. code-block:: text
1616
1717
pip install git+git://github.com/Tim-ats-d/Visual-dialog --upgrade
18+
19+
From source
20+
-----------
21+
22+
.. code-block:: text
23+
24+
git clone https://github.com/Tim-ats-d/Visual-dialog.git
25+
cd Visual-dialog
26+
pip install .
27+

doc/source/requirements.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Curses
1212
**Visual-dialog** works with ``curses`` Python module.
1313
It is available in the standard **Python** library on **UNIX** but it doesn't work out-of-the-box on **Windows**.
1414

15-
To install ``curses`` on **Windows**, you need ``windows-curses`` module:
15+
To install ``curses`` on **Windows**, you need `windows-curses <https://pypi.org/project/windows-curses/>`_ module:
1616

17-
.. code-block::
17+
.. code-block:: text
1818
1919
pip install curses-windows
2020
@@ -24,6 +24,6 @@ To build the documentation
2424
- `Sphinx <https://www.sphinx-doc.org/en/master/usage/installation.html>`_ to generate the documentation of library.
2525
- `sphinx-rtd-theme <https://pypi.org/project/sphinx-rtd-theme/>`_ used as documentation theme.
2626

27-
.. code-block::
27+
.. code-block:: text
2828
2929
pip install sphinx sphinx_rtd_theme

0 commit comments

Comments
 (0)