def main(): state = AppState() #state.sim(); app = QApplication(sys.argv) ex = rucneKomande.rucneProzor(state) rez = app.exec_() state.close(); sys.exit(rez)
def rucneWindow(self): if isinstance(self.ex, rucneKomande.rucneProzor): self.ex.close() self.ex = rucneKomande.rucneProzor(self.state) else: self.ex = rucneKomande.rucneProzor(self.state)