From 8e160fb08402f0a0dd04955638eb46858611cf6a Mon Sep 17 00:00:00 2001 From: Lucas Couto <72624002+Zerus97@users.noreply.github.com> Date: Mon, 3 Jul 2023 14:15:22 -0300 Subject: [PATCH] core-providers (audio): removes deprecated `status` property (#8298) * Core-audio: removes deprecated status property * core-providers (audio): update audio example * Fixing conflicts --- examples/audio/main.py | 2 +- kivy/core/audio/__init__.py | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/examples/audio/main.py b/examples/audio/main.py index b6b043dff..53c25a332 100644 --- a/examples/audio/main.py +++ b/examples/audio/main.py @@ -33,7 +33,7 @@ class AudioButton(Button): if self.sound is None: self.sound = SoundLoader.load(self.filename) # stop the sound if it's currently playing - if self.sound.status != 'stop': + if self.sound.state != 'stop': self.sound.stop() self.sound.volume = self.volume self.sound.play() diff --git a/kivy/core/audio/__init__.py b/kivy/core/audio/__init__.py index afb97b3d3..a98b93863 100644 --- a/kivy/core/audio/__init__.py +++ b/kivy/core/audio/__init__.py @@ -145,18 +145,6 @@ class Sound(EventDispatcher): :attr:`loop` is a :class:`~kivy.properties.BooleanProperty` and defaults to False.''' - # - # deprecated - # - def _get_status(self): - return self.state - status = AliasProperty( - _get_status, None, bind=('state', ), deprecated=True) - ''' - .. deprecated:: 1.3.0 - Use :attr:`state` instead. - ''' - __events__ = ('on_play', 'on_stop') def on_source(self, instance, filename):