Skip to content

Commit

Permalink
Added the shutdown call after exec finishes. This frees up the single…
Browse files Browse the repository at this point in the history
…ton class for the next initialization
  • Loading branch information
YHordijk committed Sep 4, 2024
1 parent 0a91975 commit 29f5247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcviewer/mol_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def __init__(self):
self.renWin.AddRenderer(self._base_ren)

self.Initialize()
self.Start()
# self.Start()

self._recording_mouse = False
self._mouse_pos = None
Expand Down
1 change: 1 addition & 0 deletions src/tcviewer/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def __enter__(self):
def __exit__(self, *args):
self.window.show()
self.exec()
self.shutdown()

def draw_molecule(self, *args, **kwargs):
self.molview.draw_molecule(*args, **kwargs)
Expand Down

0 comments on commit 29f5247

Please sign in to comment.