Lines Matching full:menu
125 ## Fix the menu and related functions.
150 Replace the Tk root menu by something that is more appropriate for
153 # The menu that is attached to the Tk root (".") is also used by AquaTk for
154 # all windows that don't specify a menu of their own. The default menubar
156 # Most annoying of those is an 'About Tck/Tk...' menu in the application
157 # menu.
160 # should only contain the correct application menu and the window menu.
163 # menu.
164 from tkinter import Menu
170 # Remove the last 3 items of the file menu: a separator, close window and
172 # it should be according to the HIG. Quit is in the application menu.
176 # Remove the 'About' entry from the help menu, it is in the application
177 # menu
179 # Remove the 'Configure Idle' entry from the options menu, it is in the
180 # application menu as 'Preferences'
182 menubar = Menu(root)
183 root.configure(menu=menubar)
186 menudict['window'] = menu = Menu(menubar, name='window', tearoff=0)
187 menubar.add_cascade(label='Window', menu=menu, underline=0)
189 def postwindowsmenu(menu=menu): argument
190 end = menu.index('end')
195 menu.delete(0, end)
196 window.add_windows_to_menu(menu)
235 # for Carbon AquaTk, replace the default Tk apple menu
236 menudict['application'] = menu = Menu(menubar, name='apple',
238 menubar.add_cascade(label='IDLE', menu=menu)
247 # replace default "Help" item in Help menu
249 # remove redundant "IDLE Help" from menu
255 They prevent context menu access and seem to be gone in AquaTk8.6.