parameters: (self, mybutton)
docstring: Add a button to the sizer.
  
          :param `mybutton`: the button to add.
docstring_summary: Add a button to the sizer.
docstring_tokens: Add a button to the sizer .
function: def AddButton(self, mybutton):
          """
          Add a button to the sizer.
  
          :param `mybutton`: the button to add.
          """
  
          buttonId = mybutton.GetId()
          
          if buttonId in [wx.ID_OK, wx.ID_YES, wx.ID_SAVE]:    
              self._buttonAffirmative = mybutton
  
          elif buttonId == wx.ID_APPLY:
              self._buttonApply = mybutton
          elif buttonId == wx.ID_NO:
              self._buttonNegative = mybutton
          elif buttonId in [wx.ID_CANCEL, wx.ID_CLOSE]:
              self._buttonCancel = mybutton
          elif buttonId in [wx.ID_HELP, wx.ID_CONTEXT_HELP]:
              self._buttonHelp = mybutton
function_tokens: def AddButton ( self , mybutton ) : buttonId = mybutton . GetId ( ) if buttonId in [ wx . ID_OK , wx . ID_YES , wx . ID_SAVE ] : self . _buttonAffirmative = mybutton elif buttonId == wx . ID_APPLY : self . _buttonApply = mybutton elif buttonId == wx . ID_NO : self . _buttonNegative = mybutton elif buttonId in [ wx . ID_CANCEL , wx . ID_CLOSE ] : self . _buttonCancel = mybutton elif buttonId in [ wx . ID_HELP , wx . ID_CONTEXT_HELP ] : self . _buttonHelp = mybutton