Move stop features to libsaria.controls.py

This commit is contained in:
Bryan Schumaker 2010-11-23 20:50:57 -05:00
parent c8c79272b6
commit 604d602448
3 changed files with 7 additions and 4 deletions

View File

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

View File

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

View File

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