def click(self):
if self.is_checkable():        <EOL><INDENT>if self.is_checked(): self.set_checked(False)<EOL>else:                 self.set_checked(True)<EOL>self.signal_clicked.emit(self.is_checked())<EOL><DEDENT>else:<EOL><INDENT>self.signal_clicked.emit(True)<EOL><DEDENT>return self<EOL>
Pretends to user clicked it, sending the signal and everything.