idasix icon indicating copy to clipboard operation
idasix copied to clipboard

Work around pyside.Signal's unhashable type bug

Open nirizr opened this issue 7 years ago • 0 comments

pyside.Signal doesn't natively support working with complex objects as signal callables. Often wrapping the callback with a lambda does work.

This should be transparently addressed by replacing pyside's connect method with one that will wrap the callback in a lambda and then call the original callback.

However, since PySide.Signal is not a python class, replacing it's method seems a bit harder than anticipated.

nirizr avatar Mar 25 '17 15:03 nirizr