Home | History | Annotate | Download | only in idlelib

Lines Matching defs:Menu

81     Replace the Tk root menu by something that's more appropriate for
84 # The menu that is attached to the Tk root (".") is also used by AquaTk for
85 # all windows that don't specify a menu of their own. The default menubar
87 # Most annoying of those is an 'About Tck/Tk...' menu in the application
88 # menu.
91 # should only contain the correct application menu and the window menu.
94 # menu.
95 from Tkinter import Menu, Text, Text
101 menubar = Menu(root)
102 root.configure(menu=menubar)
105 menudict['windows'] = menu = Menu(menubar, name='windows')
106 menubar.add_cascade(label='Window', menu=menu, underline=0)
108 def postwindowsmenu(menu=menu):
109 end = menu.index('end')
114 menu.delete(0, end)
115 WindowList.add_windows_to_menu(menu)
144 # for Carbon AquaTk, replace the default Tk apple menu
145 menudict['application'] = menu = Menu(menubar, name='apple')
146 menubar.add_cascade(label='IDLE', menu=menu)
154 # for earlier AquaTk versions, supply a Preferences menu item
162 # replace default "Help" item in Help menu
164 # remove redundant "IDLE Help" from menu