wxPython | GetToolLongHelp() function with python Last Updated : 23 Mar, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about GetToolLongHelp() function present in wx.ToolBar class of wxPython. GetToolLongHelp() function returns the long help for the given tool. It takes only one argument that is toolid( ID of the tool in question, as passed to AddTool ). Syntax: wx.GetToolLongHelp(self, toolid) Parameters : ParameterInput TypeDescriptiontoolidintAn integer by which the tool may be identified in subsequent operations. Return Type: string Code Example 1: Python3 import wx class Example(wx.Frame): global count count = 0; def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): self.locale = wx.Locale(wx.LANGUAGE_ENGLISH) pnl = wx.Panel(self) self.toolbar = self.CreateToolBar() self.toolbar.SetMargins(10, 10) # Add Tools Using AddLabelTool function rtool = self.toolbar.AddLabelTool(id = 13, label = "Tool one", bitmap = wx.Bitmap('wrong.png'), shortHelp ="short help 1", longHelp = "Long help associated with simple tool 1") stool = self.toolbar.AddLabelTool(id = 14, label = "Tool two", bitmap = wx.Bitmap('wrong.png'), shortHelp ="short help 2", longHelp = "Long help associated with simple tool 2") self.toolbar.Realize() self.SetSize((350, 250)) self.SetTitle('Control') self.Centre() bl = self.toolbar.GetToolLongHelp(13) # print tool longHelp string print(bl) def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output: Long help associated with simple tool 1 Code Example 2: Python3 import wx class Example(wx.Frame): global count count = 0; def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): self.locale = wx.Locale(wx.LANGUAGE_ENGLISH) pnl = wx.Panel(self) self.toolbar = self.CreateToolBar() self.toolbar.SetMargins(10, 10) # Add Tools Using AddLabelTool function rtool = self.toolbar.AddLabelTool(id = 13, label = "Tool one", bitmap = wx.Bitmap('wrong.png'), shortHelp ="short help 1", longHelp = "Long help associated with simple tool 1") stool = self.toolbar.AddLabelTool(id = 14, label = "Tool two", bitmap = wx.Bitmap('wrong.png'), shortHelp ="short help 2", longHelp = "Long help associated with simple tool 2") self.toolbar.Realize() self.SetSize((350, 250)) self.SetTitle('Control') self.Centre() bl = self.toolbar.GetToolLongHelp(14) # print tool longHelp string print(bl) def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output: Long help associated with simple tool 2 Comment More infoAdvertise with us Next Article wxPython | GetToolPos() function in python R RahulSabharwal Follow Improve Article Tags : Python Python-wxPython Practice Tags : python Similar Reads wxPython | GetToolPos() function in python In this article we are going to learn about GetToolPos() function associated with wx.ToolBar class of wxPython. GetToolPos() function simply returns the tool position in the toolbar, or NOT_FOUND if the tool is not found. GetToolPos() function only takes toolId(ID of the tool in question, as passed 2 min read wxPython - SetToolLongHelp() function in wx.ToolBar In this article we are going to learn about SetToolLongHelp() function associated with the wx.ToolBar class of wxPython. SetToolLongHelp() sets the long help for the given tool. SetToolLongHelp() takes toolId and helpString as arguments. Syntax: wx.ToolBar.SetToolLongHelp(self, toolId, helpString) P 1 min read wxPython | GetToolByPos() function in python In this article we are going to learn about GetToolByPos() function present in wx.ToolBar class of wxPython. GetToolByPos() function is used to simply return a pointer to the tool at specific position. GetToolByPos() function takes a single parameter that is pos(position of tool). Syntax: wx.ToolBar 2 min read wxPython | GetToolEnabled() function in python In this article we are going to learn about GetToolEnabled() function present in class wx.ToolBar of wxPython. GetToolEnabled() function simply returns a pointer to the tool at particular position. It takes only single argument that is pos(position of tool starting from 0). Syntax : wx.ToolBar.GetTo 2 min read wxPython | GetToolPacking() function in python In this article we are going to learn about GetToolPacking() function associated with wx.ToolBar class of wxPython. GetToolPacking() function simply returns the value used for packing tools.The packing is used for spacing in the vertical direction if the toolbar is horizontal, and for spacing in the 2 min read wxPython | GetToolShortHelp() function in wx.ToolBar In this article we are going to learn about GetToolShortHelp() function associated with wx.ToolBar class of wxPython. GetToolShortHelp() function returns the short help string associated with a particular tool. It takes only toolId as a parameter. Syntax wx.ToolBar.GetToolShortHelp(self, toolId) Par 2 min read Like