In this article we are going to learn about AddControl() function in wx.ToolBar class in wxPython. AddControl() creates a control in toolbar. A Control is generally a small window which processes user input and/or displays one or more item of data.
Syntax :wx.ToolBar.AddControl(self, control, label="")
Parameter Input Type Description control wx.Control The control to be added. label string Text to be displayed near the control.
Return Type : wx.ToolBarToolBase
Code Example :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.