Move stop features to libsaria.controls.py
This commit is contained in:
parent
c8c79272b6
commit
604d602448
|
@ -39,9 +39,9 @@ def load(file):
|
|||
return call("LOAD", audio.load, file)
|
||||
|
||||
|
||||
def stop():
|
||||
global audio
|
||||
return call("STOP", audio.stop)
|
||||
#def stop():
|
||||
# global audio
|
||||
# return call("STOP", audio.stop)
|
||||
|
||||
|
||||
def seek(prcnt):
|
||||
|
|
|
@ -21,3 +21,6 @@ def play():
|
|||
|
||||
def pause():
|
||||
return call("PAUSE", audio.pause)
|
||||
|
||||
def stop():
|
||||
return call("STOP", audio.stop)
|
||||
|
|
|
@ -66,7 +66,7 @@ class StopButton(Button):
|
|||
def __init__(self):
|
||||
Button.__init__(self, gtk.STOCK_MEDIA_STOP)
|
||||
def clicked(self, button):
|
||||
LS.audio.stop()
|
||||
LS.controls.stop()
|
||||
|
||||
|
||||
class NextButton(Button):
|
||||
|
|
Loading…
Reference in New Issue