From 0f824d2136cc6bfb67b00b796374a92af804ea41 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Wed, 9 Jan 2013 21:22:36 +0100 Subject: [PATCH] Updated interface to provide proper arguments for functions --- syncplay/players/basePlayer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/syncplay/players/basePlayer.py b/syncplay/players/basePlayer.py index 540ee6d..664a9ff 100644 --- a/syncplay/players/basePlayer.py +++ b/syncplay/players/basePlayer.py @@ -1,8 +1,9 @@ +from syncplay import constants class BasePlayer(object): def askForStatus(self): raise NotImplementedError() - def displayMessage(self): + def displayMessage(self, message, duration = constants.OSD_DURATION): raise NotImplementedError() def drop(self): @@ -12,11 +13,11 @@ class BasePlayer(object): def run(client, playerPath, filePath, args): raise NotImplementedError() - def setPaused(self): + def setPaused(self, value): raise NotImplementedError() - def setPosition(self): + def setPosition(self, value): raise NotImplementedError() - def setSpeed(self): + def setSpeed(self, value): raise NotImplementedError()