ev3dev: rename Image and Sound parameters to ImageFile and SoundFile

This commit is contained in:
David Lechner
2019-02-27 16:24:38 -06:00
parent cd57290b78
commit 0f3e1c84c2
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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')
+2 -2
View File
@@ -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