is there any way to connect a signal to another signal using
slider.valueChanged.connect() syntax, or is that only for signal slot
connections?

If I understood your question correctly, you can use lambda to achieve what you want:

from PySide import QtCore

class Button(QtCore.QObject):
        click = QtCore.Signal()

class A(QtCore.QObject):
        happen = QtCore.Signal()

        def __init__(self):
                QtCore.QObject.__init__(self)
                self.button = Button()
                self.button.click.connect(lambda: self.happen.emit())

def foo():
        print 'foo called'

a = A()
a.happen.connect(foo)
a.button.click.emit()
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to