def compile(self, *args): if self.running: ## self.comp._quit() else: self.comp = Compiler(self, self.projectPath, self.stateEntry, self.compileBtn) self.comp.compile()