In this particular article we are going to learn about GetMenu() function of wx.MenuBar class of wxPython. GetMenu() is function in wx.MenuBar class that return wx.Menu object present in Menubar. It needs only index of menu present on menubar.
Syntax :wx.MenuBar.GetMenu(self, menuindex)
Parameter Input Type Description menuindex int The position of the menu in the menu bar
Returns : Returns the menu at menuIndex (zero-based).
Code Example :
Command Line Output :
<wx._core.Menu object at 0x7fa64ba65318>
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