Lines Matching refs:root
36 root = tkinter.Tk()
37 ws = root.tk.call('tk', 'windowingsystem')
42 elif 'AppKit' in root.tk.call('winfo', 'server', '.'):
46 root.destroy()
120 def addOpenEventSupport(root, flist):
132 root.createcommand("::tk::mac::OpenDocument", doOpenFile)
134 def hideTkConsole(root):
136 root.tk.call('console', 'hide')
141 def overrideRootMenu(root, flist):
143 Replace the Tk root menu by something that is more appropriate for
146 # The menu that is attached to the Tk root (".") is also used by AquaTk for
175 menubar = Menu(root)
176 root.configure(menu=menubar)
196 help_about.AboutDialog(root)
203 # Ensure that the root object has an instance_dict attribute,
207 root.instance_dict = flist.inversedict
208 configdialog.ConfigDialog(root, 'Settings')
214 help.show_idlehelp(root)
216 root.bind('<<about-idle>>', about_dialog)
217 root.bind('<<open-config-dialog>>', config_dialog)
218 root.createcommand('::tk::mac::ShowPreferences', config_dialog)
220 root.bind('<<close-all-windows>>', flist.close_all_callback)
225 root.createcommand('exit', flist.close_all_callback)
239 root.createcommand('tkAboutDialog', about_dialog)
241 root.createcommand('::tk::mac::ShowHelp', help_dialog)
245 def fixb2context(root):
251 root.unbind_class('Text', '<B2>')
252 root.unbind_class('Text', '<B2-Motion>')
253 root.unbind_class('Text', '<<PasteSelection>>')
255 def setupApp(root, flist):
272 hideTkConsole(root)
273 overrideRootMenu(root, flist)
274 addOpenEventSupport(root, flist)
275 fixb2context(root)