(self)
| 37 | constants.DEBUG_MODE = config['debug'] |
| 38 | |
| 39 | def run(self): |
| 40 | if QCoreApplication.instance() is None: |
| 41 | self.app = QtWidgets.QApplication(sys.argv) |
| 42 | dialog = ConfigDialog(self.config, self._availablePlayerPaths, self.error, self.defaultConfig) |
| 43 | configLoop = QEventLoop() |
| 44 | dialog.show() |
| 45 | dialog.closed.connect(configLoop.quit) |
| 46 | configLoop.exec_() |
| 47 | |
| 48 | def setAvailablePaths(self, paths): |
| 49 | self._availablePlayerPaths = paths |
no test coverage detected