small bugfixes

This commit is contained in:
unknown 2012-09-20 09:50:38 +02:00
parent a32a856041
commit 8456661be5
3 changed files with 7 additions and 7 deletions

View File

@ -4,6 +4,7 @@ from syncplay.client import SyncplayClientManager
from syncplay.players import mpc
from syncplay.ConfigurationGetter import MPCConfigurationGetter
class SyncplayMPC(SyncplayClient):
def __init__(self):
SyncplayClient.__init__(self)
@ -15,12 +16,10 @@ class SyncplayMPC(SyncplayClient):
def _prepareArguments(self):
self.argsGetter = MPCConfigurationGetter()
self.args = self.argsGetter.getConfiguration()
self.argsGetter.saveValuesIntoConfigFile()
def _promptForMissingArguments(self):
SyncplayClient._promptForMissingArguments(self)
#if(self.args.no_gui)
while (self.args.mpc_path == None):
if (self.args.mpc_path == None):
self.args.mpc_path = self.interface.promptFor(promptName = "Path to mpc-hc.exe", message = "You must supply path to mpc on the first run, it's easier through command line arguments.")

View File

@ -6,5 +6,6 @@ def getUi(graphical = True):
ui = GraphicalUI()
else:
ui = ConsoleUI()
ui.setDaemon(True)
ui.start()
return ui

View File

@ -33,7 +33,7 @@ class ConsoleUI(threading.Thread):
elif(self._syncplayClient):
self._executeCommand(data)
except:
raise
pass
def promptFor(self, promptName = ">", message = ""):
print(message)