parameters: (self, label)
docstring: Sets the static text label and updates the control's size to exactly
          fit the label unless the control has wx.ST_NO_AUTORESIZE flag.
docstring_summary: Sets the static text label and updates the control's size to exactly
          fit the label unless the control has wx.ST_NO_AUTORESIZE flag.
docstring_tokens: Sets the static text label and updates the control s size to exactly fit the label unless the control has wx . ST_NO_AUTORESIZE flag .
function: def SetLabel(self, label):
          """
          Sets the static text label and updates the control's size to exactly
          fit the label unless the control has wx.ST_NO_AUTORESIZE flag.
          """
          wx.PyControl.SetLabel(self, label)
          style = self.GetWindowStyleFlag()
          self.InvalidateBestSize()
          if not style & wx.ST_NO_AUTORESIZE:
              self.SetSize(self.GetBestSize())
          self.Refresh()
function_tokens: def SetLabel ( self , label ) : wx . PyControl . SetLabel ( self , label ) style = self . GetWindowStyleFlag ( ) self . InvalidateBestSize ( ) if not style & wx . ST_NO_AUTORESIZE : self . SetSize ( self . GetBestSize ( ) ) self . Refresh ( )