parameters: (self, flag)
docstring: Sets the button as toggled/not toggled.
  
          :param `flag`: ``True`` to set the button as toggled, ``False`` otherwise.
docstring_summary: Sets the button as toggled/not toggled.
docstring_tokens: Sets the button as toggled / not toggled .
function: def SetToggle(self, flag):
          """
          Sets the button as toggled/not toggled.
  
          :param `flag`: ``True`` to set the button as toggled, ``False`` otherwise.
          """
  
          self._isup = not flag
          self.Refresh()
function_tokens: def SetToggle ( self , flag ) : self . _isup = not flag self . Refresh ( )