MCPcopy Create free account
hub / github.com/Syncplay/syncplay / run

Method run

syncplay/clientManager.py:8–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class 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)

Callers

nothing calls this directly

Calls 7

startMethod · 0.95
ConfigurationGetterClass · 0.90
SyncplayClientClass · 0.90
getMessageFunction · 0.90
getConfigurationMethod · 0.45
addClientMethod · 0.45
showErrorMessageMethod · 0.45

Tested by

no test coverage detected