Example #1
0
 def setUpClass(cls):
     cls.root = root = tk.Tk()
     pyshell.fix_x11_paste(root)
     cls.text = tk.Text(root)
     cls.entry = tk.Entry(root)
     cls.tentry = ttk.Entry(root)
     cls.spin = tk.Spinbox(root)
     root.clipboard_clear()
     root.clipboard_append('two')
Example #2
0
    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()