code: def _update_font_weight(self, font_weight):
          
  
          toggle_state = font_weight & wx.FONTWEIGHT_BOLD == wx.FONTWEIGHT_BOLD
  
          self.ToggleTool(wx.FONTFLAG_BOLD, toggle_state)
docs: Updates font weight widget
  
          Parameters
          ----------
  
          font_weight: Integer
          \tButton down iif font_weight == wx.FONTWEIGHT_BOLD