code: def setChecked(self, state):
          
          super(XLockButton, self).setChecked(state)
          self.updateState()
docs: Sets whether or not this button is in its locked state.
          
          :param      state | <bool>