mirror of https://github.com/kivy/kivy.git
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:
parent
5585b2410b
commit
8e160fb084
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue