wxPython – AddControl() method in wx.ToolBar
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.
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. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Coursewx.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 :