Skip to content

Commit

Permalink
Fixed python crash related to superjax#7
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon authored Sep 17, 2024
1 parent c43953a commit bc7b9a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plotWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

class plotWindow():
def __init__(self, parent=None):
self.app = QApplication(sys.argv)
self.app = QApplication.instance()
if not self.app:
self.app = QApplication(sys.argv)
self.MainWindow = QMainWindow()
self.MainWindow.__init__()
self.MainWindow.setWindowTitle("plot window")
self.canvases = []
self.figure_handles = []
Expand Down

0 comments on commit bc7b9a5

Please sign in to comment.