Skip to content

Commit 9b08d51

Browse files
author
Tim-ats-d
committed
Added callback documentation in char_by_char and word_by_word methods.
1 parent 21a4738 commit 9b08d51

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

visualdialog/core.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#
2323

2424
__all__ = ["DialogBox"]
25-
__version__ = 0.3
25+
__version__ = 0.4
2626
__author__ = "Arnouts Timéo"
2727

2828

@@ -137,6 +137,12 @@ def char_by_char(self, stdscr,
137137
138138
The random_delay parameter affects time between the writing of each character in seconds where
139139
waited time is a number generated in the given interval (as a tuple).
140+
141+
callback is the function to execute after after the delay between the writing of a
142+
character has elapsed (callback is None by default).
143+
144+
cargs parameters accepts an infinite number of arguments that will be passed during the
145+
execution of callback (by default an empty tuple).
140146
"""
141147
self.framing_box(stdscr)
142148

@@ -181,6 +187,12 @@ def word_by_word(self, stdscr,
181187
182188
The random_delay parameter affects time between the writing of each word in seconds where
183189
waited time is a number generated in the given interval (as a tuple).
190+
191+
callback is the function to execute after after the delay between the writing of a
192+
word has elapsed (callback is None by default).
193+
194+
cargs parameters accepts an infinite number of arguments that will be passed during the
195+
execution of callback (by default an empty tuple).
184196
"""
185197
self.framing_box(stdscr)
186198

0 commit comments

Comments
 (0)