parameters: (self, control, label="")
return_statement: return self._items[-1]
docstring: Adds any control to the toolbar, typically e.g. a :class:`ComboBox`.
  
          :param Window `control`: the control to be added;
          :param string `label`: the label which appears if the control goes into the
           overflow items in the toolbar.
docstring_summary: Adds any control to the toolbar, typically e.g. a :class:`ComboBox`.
docstring_tokens: Adds any control to the toolbar typically e . g . a : class : ComboBox .
function: def AddControl(self, control, label=""):
          """
          Adds any control to the toolbar, typically e.g. a :class:`ComboBox`.
  
          :param Window `control`: the control to be added;
          :param string `label`: the label which appears if the control goes into the
           overflow items in the toolbar.
          """
  
          item = AuiToolBarItem()
          item.window = control
          item.label = label
          item.bitmap = wx.NullBitmap
          item.disabled_bitmap = wx.NullBitmap
          item.active = True
          item.dropdown = False
          item.spacer_pixels = 0
          item.id = control.GetId()
          item.state = 0
          item.proportion = 0
          item.kind = ITEM_CONTROL
          item.sizer_item = None
          item.min_size = control.GetEffectiveMinSize()
          item.user_data = 0
          item.sticky = False
          item.orientation = self._tool_orientation
  
          self._items.append(item)
          return self._items[-1]
function_tokens: def AddControl ( self , control , label = "" ) : item = AuiToolBarItem ( ) item . window = control item . label = label item . bitmap = wx . NullBitmap item . disabled_bitmap = wx . NullBitmap item . active = True item . dropdown = False item . spacer_pixels = 0 item . id = control . GetId ( ) item . state = 0 item . proportion = 0 item . kind = ITEM_CONTROL item . sizer_item = None item . min_size = control . GetEffectiveMinSize ( ) item . user_data = 0 item . sticky = False item . orientation = self . _tool_orientation self . _items . append ( item ) return self . _items [ - 1 ]