A Python implementation must look like:
def mySoQtMenuSelectionCallback(myInt, myCallbackData): '''Callback for .. myInt is an int myCallbackData can be any type or class ''' # your Python code # no use to return something