mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user