code: def setFontBold(self, state):
          
          if state:
              weight = QFont.Bold
          else:
              weight = QFont.Normal
          
          self.setFontWeight(weight)
docs: Toggles whether or not the text is currently bold.
          
          :param      state | <bool>