From 0f3e1c84c28023af27e575ccb1f20b98a23e85e5 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 27 Feb 2019 15:57:10 -0600 Subject: [PATCH] ev3dev: rename Image and Sound parameters to ImageFile and SoundFile --- pybricks/_display.py | 2 +- pybricks/_speaker.py | 2 +- pybricks/parameters.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pybricks/_display.py b/pybricks/_display.py index b600b0c..59f92f3 100644 --- a/pybricks/_display.py +++ b/pybricks/_display.py @@ -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') diff --git a/pybricks/_speaker.py b/pybricks/_speaker.py index f701461..54fb40a 100644 --- a/pybricks/_speaker.py +++ b/pybricks/_speaker.py @@ -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') diff --git a/pybricks/parameters.py b/pybricks/parameters.py index 2f77b1e..55eac1c 100644 --- a/pybricks/parameters.py +++ b/pybricks/parameters.py @@ -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