<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_font_weight(self, font_weight):
 """Updates font weight widget Parameters font_weight: Integer \tButton down iif font_weight == wx.FONTWEIGHT_BOLD """


        toggle_state = font_weight & wx.FONTWEIGHT_BOLD == wx.FONTWEIGHT_BOLD

        self.ToggleTool(wx.FONTFLAG_BOLD, toggle_state)