Lines Matching full:menu
22 # | | <------ This is a MENU. The lines of text in the menu are
23 # | | MENU ENTRIES
27 # | | another file | <------ this cascading part is also a MENU
45 # make menu button : "File"
48 File_button.menu = Menu(File_button)
50 # add an item. The first param is a menu entry type,
52 # see menu-demo-2.py for examples of use
53 File_button.menu.add_command(label='New...', underline=0,
57 File_button.menu.add_command(label='Open...', underline=0,
60 File_button.menu.add_command(label='Quit', underline=0,
63 # set up a pointer from the file menubutton back to the file menu
64 File_button['menu'] = File_button.menu
73 Edit_button.menu = Menu(Edit_button)
76 Edit_button.menu.add('command', label="Undo")
79 Edit_button.menu.entryconfig(1, state=DISABLED)
82 Edit_button.menu.add_command(label="Cut")
83 Edit_button.menu.add_command(label="Copy")
84 Edit_button.menu.add_command(label="Paste")
86 # set up a pointer from the file menubutton back to the file menu
87 Edit_button['menu'] = Edit_button.menu
98 # make a menu bar
105 # finally, install the buttons in the menu bar.
109 root.title('menu demo')