def visualize(self): try: if self.load(): vis = Visualizer(int(self.data['borderX']), int(self.data['borderY'])) vis.createImage(self.data) except Exception: Window.error( "There is no .json file for the given project name.\nRun the simulation first." ) self.win.showResults("gif/" + self.data['project'] + ".gif")