wxPython - SetHelpString() function in wx.MenuBar Last Updated : 11 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we are going to learn about another function of class wx.MenuBar in wxPython, that is, SetHelpString(). Set help string associates a Help string along with menu item which is further used for various purposes. Syntax : wx.MenuBar.SetHelpString(self, id, helpString) Parameter : Parameter Input Type Description id int Menu item identifier. helpString string Help string to associate with the menu item. Code Example : Python3 1== import wx class Example(wx.Frame): def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): # create MenuBar using MenuBar() function menubar = wx.MenuBar() # add menu to MenuBar fm1 = wx.Menu() fileitem = fm1.Append(20, "Item # 1") menubar.Append(fm1, '&Menu # 1') self.SetMenuBar(menubar) self.SetSize((300, 200)) self.SetTitle('Menu Bar') # set helpstring using SetHelpString() function menubar.SetHelpString(20, "Help String") st = wx.StaticText(self, label ="click Item # 1 in Menu # 1") print(menubar.GetHelpString(20)) def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output : Comment More infoAdvertise with us Next Article wxPython - SetFont() function in wx.MenuItem R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Practice Tags : python Similar Reads wxPython - SetLabel() function in wx.MenuBar Another important function in wx.MenuBar is SetLabel() function in wx.MenuBar class of wxPython. SetLabel() function is used to change the Label(title) of the menu item in menubar. It is used only after the menubar has been associated with a frame. Syntax : wx.MenuBar.SetLabel(self, id, label) Param 1 min read wxPython - SetHelp() function in wx.MenuItem In this article we are going to learn about SetHelp() function associated with wx.MenuItem class of wxPython. SetHelp() function is simply used to set the help string associated with menu item. SetHelp() function only takes helpstring as a parameter. Syntax: wx.MenuItem.SetHelp(self, helpString) Par 1 min read wxPython - Remove() function in wx.MenuBar In this article we are going to learn about Remove() function of wx.MenuBar class. Remove() function removes Menu from a particular position in MenuBar in frame. This function takes pos parameter, that is, position of Menu to be deleted. Parameters : Parameter Input Type Description pos int The posi 2 min read wxPython - SetMenu() function in wx.MenuItem In this article we are going to learn about SetMenu() function associated with wx.MenuItem class of wxPython. SetMenu() function sets the parent menu which will contain this menu item. It takes a single wx.Menu object as parameter. Syntax: wx.MenuItem.SetMenu(self, menu) Parameters: Parameter Input 1 min read wxPython - SetFont() function in wx.MenuItem In this article we are going to learn about SetFont() function associated with wx.MenuItem class of wxPython. SetFont() function is used to set the font associated with the menu item. It takes font as parameter which is wx.Font object. Syntax: wx.MenuItem.SetFont(self, font) Parameters: Parameter In 1 min read wxPython - SetTextColour() function in wx.MenuItem In this article we are going to learn about SetTextColour() function associated with wx.MenuItem class of wxPython. SetTextColour() function is used to simply set the text colour associated with the menu item. Only a colour parameter is required in SetTextColour() function. Syntax: wx.MenuItem.GetTe 1 min read Like