functions.py
def create_menu_bar(window):
    """Draw menu bar to the main window."""
    menubar = Menu(window)
    filemenu = Menu(menubar, tearoff=0)
    filemenu.add_command(label="Open")
    filemenu.add_command(label="Save")
    filemenu.add_separator()
    filemenu.add_command(label="Exit")
    menubar.add_cascade(label="File", menu=filemenu)
Draw menu bar to the main window.
Draw menu bar to the main window.
Draw menu bar to the main window .
def create_menu_bar(window):
    menubar = Menu(window)
    filemenu = Menu(menubar, tearoff=0)
    filemenu.add_command(label="Open")
    filemenu.add_command(label="Save")
    filemenu.add_separator()
    filemenu.add_command(label="Exit")
    menubar.add_cascade(label="File", menu=filemenu)
def create_menu_bar ( window ) : menubar = Menu ( window ) filemenu = Menu ( menubar , tearoff = 0 ) filemenu . add_command ( label = "Open" ) filemenu . add_command ( label = "Save" ) filemenu . add_separator ( ) filemenu . add_command ( label = "Exit" ) menubar . add_cascade ( label = "File" , menu = filemenu )
Draw menu bar to the main window.
Draw menu bar to the main window .
"""Draw menu bar to the main window."""
window