(self)
| 6 | |
| 7 | class SyncplayClientManager(object): |
| 8 | def run(self): |
| 9 | config = ConfigurationGetter().getConfiguration() |
| 10 | from syncplay.client import SyncplayClient # Imported later, so the proper reactor is installed |
| 11 | menuBar = config['menuBar'] if 'menuBar' in config else None |
| 12 | interface = ui.getUi(graphical=not config["noGui"], passedBar=menuBar) |
| 13 | syncplayClient = SyncplayClient(config["playerClass"], interface, config) |
| 14 | if syncplayClient: |
| 15 | interface.addClient(syncplayClient) |
| 16 | syncplayClient.start(config['host'], config['port']) |
| 17 | else: |
| 18 | interface.showErrorMessage(getMessage("unable-to-start-client-error"), True) |
nothing calls this directly
no test coverage detected