I've made a correction to my earlier code but even so the button signal doesn't connect to it's slot.

        self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), MainWindow.on_pushButton_toggled)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)


I'm not sure if the Designer signal above matches the slot code generated by Eric.

    @pyqtSignature("bool")
    def on_pushButton_toggled(self, checked):
        """
        Slot documentation goes here.
        """
        # TODO: not implemented yet
        #raise NotImplementedError
        self.label.setText("text")

--
Regards,
Phil
_______________________________________________
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to