Re: [PyQt] Accessing a toggle button without clicking on it

2013-07-09 Thread Phil
On 09/07/13 17:03, Giuseppe Corbelli wrote: On 07/07/2013 11:51, Phil wrote: 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 no

Re: [PyQt] Accessing a toggle button without clicking on it

2013-07-09 Thread Giuseppe Corbelli
On 07/07/2013 11:51, Phil wrote: 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)

[PyQt] Accessing a toggle button without clicking on it

2013-07-07 Thread Phil
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 @pyq