It seems you may not even need the lambda. The QT docs say you can just 
connect a signal to a signal (
http://doc.qt.nokia.com/latest/qobject.html#connect):i.QPushButton("Button 
1"):

from PySide import QtCore, QtGui
class SignalToSignal(QtGui.QDialog):
    
    custom_button_signal = QtCore.Signal()
    
    def __init__(self, parent=None):
        super(SignalToSignal, self).__init__(parent)
        
        button = QtGui.QPushButton("Button 1")
        
        vbox = QtGui.QVBoxLayout()
        vbox.addWidget(button)
        
        self.setLayout(vbox)
        
        button.clicked.connect(self.custom_button_signal)
        
        self.custom_button_signal.connect(self.say_hello)
        
    def say_hello(self):
        print "custom_button_signal says hi!"
        
        
import sys
app = QtGui.QApplication(sys.argv)
w = SignalToSignal()
w.show()
sys.exit(app.exec_())

        
        
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to