core-providers (audio): removes deprecated `status` property (#8298)

* Core-audio: removes deprecated status property

* core-providers (audio): update audio example

* Fixing conflicts
This commit is contained in:
Lucas Couto 2023-07-03 14:15:22 -03:00 committed by GitHub
parent 5585b2410b
commit 8e160fb084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View File

@ -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()

View File

@ -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):