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)
|
return call("LOAD", audio.load, file)
|
||||||
|
|
||||||
|
|
||||||
def stop():
|
#def stop():
|
||||||
global audio
|
# global audio
|
||||||
return call("STOP", audio.stop)
|
# return call("STOP", audio.stop)
|
||||||
|
|
||||||
|
|
||||||
def seek(prcnt):
|
def seek(prcnt):
|
||||||
|
|
|
@ -21,3 +21,6 @@ def play():
|
||||||
|
|
||||||
def pause():
|
def pause():
|
||||||
return call("PAUSE", audio.pause)
|
return call("PAUSE", audio.pause)
|
||||||
|
|
||||||
|
def stop():
|
||||||
|
return call("STOP", audio.stop)
|
||||||
|
|
|
@ -66,7 +66,7 @@ class StopButton(Button):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Button.__init__(self, gtk.STOCK_MEDIA_STOP)
|
Button.__init__(self, gtk.STOCK_MEDIA_STOP)
|
||||||
def clicked(self, button):
|
def clicked(self, button):
|
||||||
LS.audio.stop()
|
LS.controls.stop()
|
||||||
|
|
||||||
|
|
||||||
class NextButton(Button):
|
class NextButton(Button):
|
||||||
|
|
Loading…
Reference in New Issue