[PyQt] Accessing a toggle button without clicking on it
Phil
phil_lor at bigpond.com
Sun Jul 7 10:51:18 BST 2013
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
More information about the PyQt
mailing list