Skip to content

Commit 505d4a0

Browse files
committed
Several minor fixes in code and doc.
1 parent 7dd745a commit 505d4a0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

examples/confrontation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
PASS_KEYS = (" ", "\n")
10-
HEIGHT, WIDTH = 35, 6
10+
HEIGHT, WIDTH = 37, 7
1111

1212

1313
# It is preferable to create its own class derived from DialogBox for

examples/monologue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def main(win):
2323
curses.init_pair(2, curses.COLOR_CYAN, 0)
2424

2525
textbox = DialogBox(1, 1, # Position 1;1 in win.
26-
30, 5, # Height and width of textbox.
26+
30, 6, # Height and width of textbox.
2727
"Tim-ats", # Title of textbox.
2828
1) # Curses color_pair used to colored title.
2929

visualdialog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
21
"""A library to make easier dialog box in terminal."""
32

43
__version__ = 0.8
54
__author__ = "Timéo Arnouts"
65

76
from .box import *
87
from .dialog import *
8+
from .error import *
99
from .type import *
1010
from .utils import *

visualdialog/box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
def value_checker(initializer: Callable) -> Callable:
1717
"""A decorator which ensures that correct values are passed to
18-
``BaseTextBox`` to avoid unexpected behavior.
18+
``BaseTextBox`` initializer to avoid unexpected behavior.
1919
"""
2020
def __init__(self,
2121
pos_x, pos_y,

visualdialog/error.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# error.py
22
# 2020 Timéo Arnouts <[email protected]>
33

4-
__all__ = ["PanicError"]
4+
__all__ = ["PanicError", "ValueNotInBound"]
55

66
from typing import Callable
77

88
from .type import CursesKey
99

1010

1111
class ValueNotInBound(ValueError):
12-
"""Exception thrown when when incorrect values are passed as
13-
parameters to the ``BaseTextBox`` constructor.
12+
"""Exception thrown when incorrect values are passed as parameters
13+
to the ``BaseTextBox`` constructor.
1414
"""
1515
pass
1616

0 commit comments

Comments
 (0)