@@ -25,15 +25,7 @@ class DialogBox(BaseTextBox):
2525 can lead to an overflow of the dialog box frame. This defaults
2626 to ``"►"``.
2727
28- <<<<<<< HEAD
29- :key kwargs: Keyword arguments correspond to the instance attributes
30- of :class:`BaseTextBox`.
31-
32- .. NOTE::
33- This class inherits of :class:`BaseTextBox`.
34- =======
3528 :param args: Constructor arguments of :class:`BaseTextBox`.
36- >>>>>>> 817377f (DialogBox.char_by_char and word_by_word nows return given text argument, start to improve doc.)
3729
3830 :param kwargs: Constructor keyword arguments of
3931 :class:`BaseTextBox`.
@@ -82,10 +74,7 @@ def __enter__(self) -> "DialogBox":
8274
8375 def __exit__ (self , type , value , traceback ):
8476 """Return None."""
85- < << << << HEAD
8677 return None
87- == == == =
88- >> >> >> > 817377 f (DialogBox .char_by_char and word_by_word nows return given text argument , start to improve doc .)
8978
9079 def char_by_char (self ,
9180 win : CursesWindow ,
@@ -143,42 +132,20 @@ def char_by_char(self,
143132 number generated in ``random_delay`` interval. This defaults
144133 to ``(0, 0)``.
145134
146- :param callback : Iterable of callable called one by one after
135+ :param callbacks : Iterable of callable called one by one after
147136 writing a character and the delay time has elapsed. This
148137 defaults to an empty tuple.
149138 The arguments passed to the given callables are:
150- - the current instance (``self``).
151- - the character previously written.
152- - the index of the character previously written in the
153- word being written.
154-
155- <<<<<<< HEAD
156- :returns: ``text`` argument passed in parameter without any
157- treatment.
158-
159- .. NOTE::
160- Method flow:
161- - Calling ``framing_box`` method.
162- - Flash screen depending ``flash_screen`` parameter.
163- - Cutting text into line to stay within the dialog box
164- frame.
165- - Writing paragraph by paragraph.
166- - Writing each line of the current paragraph.
167- - Writing each word of line.
168- - Writing each character of word and execute callbacks
169- between.
170- - Waits until a key contained in the class attribute
171- ``confirm_keys`` was pressed before writing the
172- following paragraph.
173- - Complete cleaning ``win``.
174-
175- .. WARNING::
176- =======
139+
140+ * the current instance (``self``).
141+ * the character previously written.
142+ * the index of the character previously written in the
143+ word being written.
144+
177145 .. note::
178146 See implementation for more informations on method flow.
179147
180148 .. note::
181- >>>>>>> 817377f (DialogBox.char_by_char and word_by_word nows return given text argument, start to improve doc.)
182149 If the volume of text displayed is too large to be contained
183150 in a dialog box, text will be automatically cut into
184151 paragraphs using ``textwrap.wrap`` function. See
@@ -260,38 +227,18 @@ def word_by_word(self,
260227 generated in ``random_delay`` interval. This defaults to
261228 ``(0, 0)``.
262229
263- :param callback : Iterable of callable called one by one after
230+ :param callbacks : Iterable of callable called one by one after
264231 writing a word and the delay time has elapsed. This defaults
265232 to an empty tuple.
266233 The arguments passed to the given callables are:
267- - the current instance (``self``).
268- - the word previously written.
269-
270- <<<<<<< HEAD
271- :returns: ``text`` argument passed in parameter without any
272- treatment.
273-
274- .. NOTE::
275- Method flow:
276- - Calling ``framing_box`` method.
277- - Flash screen depending ``flash_screen`` parameter.
278- - Cutting text into line to stay within the dialog box
279- frame.
280- - Writing paragraph by paragraph.
281- - Writing each line of the current paragraph.
282- - Writing each word of line and execute callbacks between.
283- - Waits until a key contained in the class attribute
284- ``confirm_keys`` was pressed before writing the
285- following paragraph.
286- - Complete cleaning ``win``.
287-
288- .. WARNING::
289- =======
234+
235+ * the current instance (``self``).
236+ * the word previously written.
237+
290238 .. note::
291239 See implementation for more informations on method flow.
292240
293241 .. note::
294- >>>>>>> 817377f (DialogBox.char_by_char and word_by_word nows return given text argument, start to improve doc.)
295242 If the volume of text displayed is too large to be contained
296243 in a dialog box, text will be automatically cut into
297244 paragraphs using ``textwrap.wrap`` function. See
@@ -327,13 +274,13 @@ def _display_end_indicator(self,
327274 curses .A_BOLD ,
328275 curses .A_BLINK )):
329276 """Displays an end indicator in the lower right corner of
330- textbox .
277+ text box .
331278
332279 :param win: ``curses`` window object on which the method
333280 will have effect.
334281
335- :param text_attr: Text attributes of
336- ``end_indicator`` method . This defaults to
282+ :param text_attr: Text attributes used to display
283+ ``end_indicator``. This defaults to
337284 ``(curses.A_BOLD, curses.A_BLINK)``.
338285 """
339286 if self .end_indicator_char :
0 commit comments