Oct-23-2019, 05:22 AM
The method is created here
import wx class HelloFrame(wx.Frame): """ A Frame that says Hello World """ ... ... def makeMenuBar(self): """ A menu bar is composed of menus, which are composed of menu items. This method builds a set of menus and binds handlers to be called when the menu item is selected. """ ... ...and called here
import wx class HelloFrame(wx.Frame): """ A Frame that says Hello World """ def __init__(self, *args, **kw): # ensure the parent's __init__ is called super(HelloFrame, self).__init__(*args, **kw) ... ... # create a menu bar self.makeMenuBar()