Skip to content

Commit

Permalink
Fixed the "Kernel died" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tentekal committed Aug 2, 2017
1 parent cca86b6 commit 48dde17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backSubWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ def run():
sys.exit(app.exec_())

if __name__ == '__main__':
app = QtWidgets.QApplication.instance()
if app is None:
app = QtWidgets.QApplication(sys.argv)
else:
print('QApplication instance already exists: %s' % str(app))


print("Starting...")

Expand Down

0 comments on commit 48dde17

Please sign in to comment.