Lines Matching full:menu
114 Replace the Tk root menu by something that is more appropriate for
117 # The menu that is attached to the Tk root (".") is also used by AquaTk for
118 # all windows that don't specify a menu of their own. The default menubar
120 # Most annoying of those is an 'About Tck/Tk...' menu in the application
121 # menu.
124 # should only contain the correct application menu and the window menu.
127 # menu.
128 from Tkinter import Menu
134 # Remove the last 3 items of the file menu: a separator, close window and
136 # it should be according to the HIG. Quit is in the application menu.
140 # Remove the 'About' entry from the help menu, it is in the application
141 # menu
143 # Remove the 'Configure Idle' entry from the options menu, it is in the
144 # application menu as 'Preferences'
146 menubar = Menu(root)
147 root.configure(menu=menubar)
150 menudict['windows'] = menu = Menu(menubar, name='windows', tearoff=0)
151 menubar.add_cascade(label='Window', menu=menu, underline=0)
153 def postwindowsmenu(menu=menu): argument
154 end = menu.index('end')
159 menu.delete(0, end)
160 WindowList.add_windows_to_menu(menu)
194 # for Carbon AquaTk, replace the default Tk apple menu
195 menudict['application'] = menu = Menu(menubar, name='apple',
197 menubar.add_cascade(label='IDLE', menu=menu)
205 # for earlier AquaTk versions, supply a Preferences menu item
212 # replace default "Help" item in Help menu
214 # remove redundant "IDLE Help" from menu