Skip to content

Commit

Permalink
Fix garbage collection trigger in standalone app with PySide2
Browse files Browse the repository at this point in the history
Fixes `TypeError: <lambda>() missing 1 required positional argument: 'qobject'`.
  • Loading branch information
jpgill86 committed Feb 8, 2021
1 parent a6a8f67 commit dc6fd2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephyviewer/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def load_dataset(self, neo_rawio_class=None, file_or_dir_names=[], io_params={})
# delete window on close so that memory and file resources are released
win.setAttribute(QT.WA_DeleteOnClose, True)
win.destroyed.connect(
lambda qobject, i=len(self.windows)-1: self.free_resources(i)) # TODO: fix PySide2 TypeError
lambda *args, i=len(self.windows)-1: self.free_resources(i))

win.show()

Expand Down

0 comments on commit dc6fd2e

Please sign in to comment.