In this article we are going to learn about AddCheckTool() in wx.ToolBar class of wxPython. AddCheckTool() function is used to add check tools. A checktool is a kind of toggle button. A checktool have a on and off state.
Syntax : wx.ToolBar.AddCheckTool(self, toolId, label, bitmap1, bmpDisabled=NullBitmap, shortHelp=””, longHelp=””, clientData=None)
Parameter Input Type Description toolid int An integer by which the tool may be identified in subsequent operations. label string The string to be displayed with the tool. bitmap1 wx.bitmap The primary tool bitmap. bmpDisabled wx.bitmap The bitmap used when the tool is disabled. shortHelp string This string is used for the tools tooltip. longHelp string detailed string associated with tool. clientData PyUserData An optional pointer to client data which can be retrieved later using GetToolClientData.
Return Type : wx.ToolBarToolBase
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 Course