def _setupengine(self, mode): engine = DummyCECPAnalyzerEngine() analyzer = CECPEngine(engine, WHITE, 2, 0) def optionsCallback (engine): analyzer.setOptionAnalyzing(mode) analyzer.connect("readyForOptions", optionsCallback) analyzer.prestart() analyzer.start() return engine, analyzer