3535
3636class DialogBox (TextBox ):
3737 """This class provides methods and attributs to manage a dialog box.
38-
39- Keyword arguments correspond to the instance attributes of ``TextBox``,
40- documented below.
4138
4239 :param end_dialog_indicator: Character that will be displayed in the
4340 lower right corner the character once all the characters have
@@ -46,6 +43,9 @@ class DialogBox(TextBox):
4643 to ``"►"``.
4744 :type end_dialog_indicator: str
4845
46+ :key kwargs: Keyword arguments correspond to the instance attributes of
47+ ``TextBox``.
48+
4949 .. NOTE::
5050 This class inherits all the methods and attributes of ``TextBox``.
5151
@@ -89,7 +89,7 @@ def _display_end_dialog_indicator(
8989 :param text_attr: Text attributes of
9090 ``end_dialog_indicator`` method. This defaults to
9191 ``(curses.A_BOLD, curses.A_BLINK)``.
92- :type text_attr: Optional[Union[Tuple [CursesTextAttributesConstants],List [CursesTextAttributesConstants]]]
92+ :type text_attr: Optional[Union[tuple [CursesTextAttributesConstants],list [CursesTextAttributesConstants]]]
9393 """
9494 if self .end_dialog_indicator_char :
9595 with TextAttributes (stdscr , * text_attr ):
@@ -134,10 +134,10 @@ def char_by_char(
134134 :param text_attr: Dialog box curses text attributes. It should
135135 be a single curses text attribute or a tuple of curses text
136136 attribute. This defaults an empty tuple.
137- :type text_attr: Optional[Union[CursesTextAttributesConstants,Tuple [CursesTextAttributesConstants],List [CursesTextAttributesConstants]]]
137+ :type text_attr: Optional[Union[CursesTextAttributesConstants,tuple [CursesTextAttributesConstants],list [CursesTextAttributesConstants]]]
138138
139139 :param words_attr: This defaults to an empty dictionary.
140- :type words_atttr: Union[Dict[Tuple [str],CursesTextAttributesConstants],Dict[Tuple [str],Tuple [CursesTextAttributesConstants]]]
140+ :type words_atttr: Union[Dict[tuple [str],CursesTextAttributesConstants],Dict[tuple [str],tuple [CursesTextAttributesConstants]]]
141141
142142 :param flash_screen: Allows or not to flash screen with a short
143143 light effect done before writing the first character by
@@ -153,7 +153,7 @@ def char_by_char(
153153 character in seconds where time waited is a random number
154154 generated in ``random_delay`` interval. This defaults to
155155 ``(0, 0)``.
156- :type random_delay: Optional[Tuple [float, flot],List [float, float]]
156+ :type random_delay: Optional[tuple [float, flot],list [float, float]]
157157
158158 :param callback: Callable called after writing a character and
159159 the delay time has elapsed. This defaults to a lambda which
@@ -162,7 +162,7 @@ def char_by_char(
162162
163163 :param cargs: All the arguments that will be passed to callback.
164164 This defaults to an empty tuple.
165- :type cargs: Optional[Union[Tuple [Any],List [Any]]]
165+ :type cargs: Optional[Union[tuple [Any],list [Any]]]
166166
167167 .. NOTE::
168168 Method flow:
@@ -280,10 +280,10 @@ def word_by_word(
280280 :param text_attr: Dialog box curses text attributes. It should
281281 be a single curses text attribute or a tuple of curses text
282282 attribute. This defaults an empty tuple.
283- :type text_attr: Optional[Union[CursesTextAttributesConstants,Tuple [CursesTextAttributesConstants],List [CursesTextAttributesConstants]]]
283+ :type text_attr: Optional[Union[CursesTextAttributesConstants,tuple [CursesTextAttributesConstants],list [CursesTextAttributesConstants]]]
284284
285285 :param words_attr: This defaults to an empty dictionary.
286- :type words_atttr: Union[Dict[Tuple [str],CursesTextAttributesConstants],Dict[Tuple [str],Tuple [CursesTextAttributesConstants]]]
286+ :type words_atttr: Union[Dict[tuple [str],CursesTextAttributesConstants],Dict[tuple [str],tuple [CursesTextAttributesConstants]]]
287287
288288 :param cut_char: The delimiter according which to split the text
289289 in word. This defaults to ``" "``.
@@ -303,7 +303,7 @@ def word_by_word(
303303 word in seconds where time waited is a random number
304304 generated in ``random_delay`` interval. This defaults to
305305 ``(0, 0)``.
306- :type random_delay: Optional[Tuple [float, float],List [float, float]]
306+ :type random_delay: Optional[tuple [float, float],list [float, float]]
307307
308308 :param callback: Callable called after writing a word and the
309309 delay time has elapsed. This defaults to a lambda which do
@@ -312,7 +312,7 @@ def word_by_word(
312312
313313 :param cargs: All the arguments that will be passed to callback.
314314 This defaults to an empty tuple.
315- :type cargs: Optional[Union[Tuple [Any],List [Any]]]
315+ :type cargs: Optional[Union[tuple [Any],list [Any]]]
316316
317317 .. NOTE::
318318 Method flow:
0 commit comments