Exemplo n.º 1
0
 def run(self):
     config = ConfigurationGetter().getConfiguration()
     interface = ui.getUi(graphical=not config["noGui"])
     syncplayClient = SyncplayClient(config["playerClass"], interface, config)
     if(syncplayClient):
         interface.addClient(syncplayClient)
         syncplayClient.start(config['host'], config['port'])
     else:
         interface.showErrorMessage(getMessage("en", "unable-to-start-client-error"))
Exemplo n.º 2
0
 def run(self):
     config = ConfigurationGetter().getConfiguration()
     from syncplay.client import SyncplayClient #Imported later, so the proper reactor is installed
     interface = ui.getUi(graphical=not config["noGui"])
     syncplayClient = SyncplayClient(config["playerClass"], interface, config)
     if syncplayClient:
         interface.addClient(syncplayClient)
         syncplayClient.start(config['host'], config['port'])
     else:
         interface.showErrorMessage(getMessage("unable-to-start-client-error"), True)
Exemplo n.º 3
0
 def run(self):
     config = ConfigurationGetter().getConfiguration()
     from syncplay.client import SyncplayClient #Imported later, so the proper reactor is installed
     interface = ui.getUi(graphical=not config["noGui"])
     syncplayClient = SyncplayClient(config["playerClass"], interface, config)
     if(syncplayClient):
         interface.addClient(syncplayClient)
         syncplayClient.start(config['host'], config['port'])
     else:
         interface.showErrorMessage(getMessage("en", "unable-to-start-client-error"))
Exemplo n.º 4
0
 def run(self):
     config = ConfigurationGetter().getConfiguration()
     from syncplay.client import SyncplayClient  # Imported later, so the proper reactor is installed
     menuBar = config['menuBar'] if 'menuBar' in config else None
     interface = ui.getUi(graphical=not config["noGui"], passedBar=menuBar)
     syncplayClient = SyncplayClient(config["playerClass"], interface,
                                     config)
     if syncplayClient:
         interface.addClient(syncplayClient)
         syncplayClient.start(config['host'], config['port'])
     else:
         interface.showErrorMessage(
             getMessage("unable-to-start-client-error"), True)