Jason S
Jason S

Reputation: 189646

PySide/PyQT signals and slots with tuples?

The PySide docs that talk about signals and slots give examples of signals that are str and int types. What do you do if you want the signals to be a pair of ints in a tuple?

Upvotes: 3

Views: 4070

Answers (1)

shanet
shanet

Reputation: 7324

You should be able to use object to pass a tuple.

For example:

signal = Signal(object)
signal.connect(...)
signal.emit(tuple)

Upvotes: 4

Related Questions