idasix
idasix copied to clipboard
Work around pyside.Signal's unhashable type bug
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.