Lines Matching refs:root
23 root = tkinter.Tk()
24 ws = root.tk.call('tk', 'windowingsystem')
29 elif 'AppKit' in root.tk.call('winfo', 'server', '.'):
33 root.destroy()
71 def tkVersionWarning(root): argument
81 patchlevel = root.tk.call('info', 'patchlevel')
127 def addOpenEventSupport(root, flist): argument
139 root.createcommand("::tk::mac::OpenDocument", doOpenFile)
141 def hideTkConsole(root): argument
143 root.tk.call('console', 'hide')
148 def overrideRootMenu(root, flist): argument
182 menubar = Menu(root)
183 root.configure(menu=menubar)
203 help_about.AboutDialog(root)
214 root.instance_dict = flist.inversedict
215 configdialog.ConfigDialog(root, 'Settings')
221 help.show_idlehelp(root)
223 root.bind('<<about-idle>>', about_dialog)
224 root.bind('<<open-config-dialog>>', config_dialog)
225 root.createcommand('::tk::mac::ShowPreferences', config_dialog)
227 root.bind('<<close-all-windows>>', flist.close_all_callback)
232 root.createcommand('exit', flist.close_all_callback)
246 root.createcommand('tkAboutDialog', about_dialog)
248 root.createcommand('::tk::mac::ShowHelp', help_dialog)
252 def fixb2context(root): argument
258 root.unbind_class('Text', '<B2>')
259 root.unbind_class('Text', '<B2-Motion>')
260 root.unbind_class('Text', '<<PasteSelection>>')
262 def setupApp(root, flist): argument
279 hideTkConsole(root)
280 overrideRootMenu(root, flist)
281 addOpenEventSupport(root, flist)
282 fixb2context(root)