def _test(): # TODO check and convert to htest from tkinter import Tk from idlelib.editor import fixwordbreaks from idlelib.run import fix_scaling root = Tk() fix_scaling(root) fixwordbreaks(root) root.withdraw() flist = FileList(root) flist.new() if flist.inversedict: root.mainloop()
def setUpClass(cls): requires('gui') cls.root = root = tk.Tk() root.withdraw() fix_scaling(root) fixwordbreaks(root) fix_x11_paste(root) cls.flist = flist = PyShellFileList(root) # See #43981 about macosx.setupApp(root, flist) causing failure. root.update_idletasks() cls.init_shell()
def _test(): from idlelib.EditorWindow import fixwordbreaks from idlelib.run import fix_scaling import sys root = Tk() fix_scaling(root) fixwordbreaks(root) root.withdraw() flist = FileList(root) if sys.argv[1:]: for filename in sys.argv[1:]: flist.open(filename) else: flist.new() if flist.inversedict: root.mainloop()