Using the pyside qt binding module inside a small python 2.7 project I want to find out the source of a signal. So inside a slot I want to have some means to ask by what signal this slot has actually been triggered with.
I figured out that this gives me a clean debug notation of the actual sender object:
sigItem = "<anonymous>" if not self.sender() else \
re.search('<(.+) object at .+>', repr(self.sender()), 0).group(1)
But all I found until now to identify the actual signal that caused this slot to be called is apparently the signals index inside the caller object:
sigIndex = self.senderSignalIndex()
So how can I find out the actual signals name?