mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
ev3dev: rename Image and Sound parameters to ImageFile and SoundFile
This commit is contained in:
@@ -55,7 +55,7 @@ class Display():
|
||||
Example::
|
||||
|
||||
# Show a built-in image showing two eyes looking upward
|
||||
brick.display.image(Image.UP)
|
||||
brick.display.image(ImageFile.UP)
|
||||
|
||||
# Display a custom image from your project folder
|
||||
brick.display.image('pybricks.png')
|
||||
|
||||
@@ -49,7 +49,7 @@ class Speaker():
|
||||
Example::
|
||||
|
||||
# Play one of the built-in sounds
|
||||
brick.sound.file(Sound.HELLO)
|
||||
brick.sound.file(SoundFile.HELLO)
|
||||
|
||||
# Play a sound file from your project folder
|
||||
brick.sound.file('mysound.wav')
|
||||
|
||||
@@ -218,7 +218,7 @@ class Align():
|
||||
TOP_RIGHT = 9
|
||||
|
||||
|
||||
class Sound():
|
||||
class SoundFile():
|
||||
"""Paths to standard EV3 sounds.
|
||||
|
||||
Expressions
|
||||
@@ -463,7 +463,7 @@ class Sound():
|
||||
OVERPOWER = _BASE_PATH + 'system/overpower.wav'
|
||||
|
||||
|
||||
class Image():
|
||||
class ImageFile():
|
||||
"""Paths to standard EV3 images.
|
||||
|
||||
Information
|
||||
|
||||
Reference in New Issue
Block a user