Thank you for reading this.

How to I access my toggle button slot without clicking on the button?
For example:

if  hr == 19:
    # this button is accessible
    self. on_pushButton_clicked()

    # this fails because checked is not defined
    self.on_ledButton_toggled(checked)


Slots

    @pyqtSignature("")
    def on_pushButton_clicked(self):

    @pyqtSignature("bool")
    def on_ledButton_toggled(self, checked):

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

Reply via email to