doc/screen: simplify print doc

Only say what it does, not what it doesn't do.

Also delete "on the image" because this is also used for the screen.
This commit is contained in:
Laurens Valk
2020-01-16 13:48:56 +01:00
parent f7ff1e511e
commit 00f5b9e13b
2 changed files with 8 additions and 10 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ class Speaker():
def say(self, text):
"""Say a given text string.
The options set by :meth:`set_speech_options` can affect the playback.
You can configure the language and voice of the text using
:meth:`set_speech_options`.
Arguments:
text (str): What to say.
+6 -9
View File
@@ -142,18 +142,15 @@ class Image:
pass
def print(self, *args, sep=' ', end='\n'):
"""Prints a line of text on the image.
"""Prints a line of text.
This method works like the built-in ``print()`` function except that
it writes the text on the image instead.
This method works like the built-in ``print()`` function, but
it writes on the screen/image instead.
The most recent font set using :meth:`set_font` will be used or
:data:`Font.DEFAULT` if no font has been set yet.
You can set the font using :meth:`set_font`. If no font has been
set, :data:`Font.DEFAULT` will be used.
Lines are not wrapped if they are too long to fit on the image
horizontally. On the other hand, If the text would be printed off of
the image vertically, the entire image is scrolled up so that the text
will be visible in the image.
If no new line is available, all text scrolls up automatically.
Arguments:
* (object):