Lines Matching refs:cls
41 def setUpClass(cls):
43 cls.root = tk.Tk()
44 cls.root.withdraw()
46 cls.text_frame = tk.Frame(cls.root)
47 cls.text_frame.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
48 cls.text_frame.rowconfigure(1, weight=1)
49 cls.text_frame.columnconfigure(1, weight=1)
51 cls.text = tk.Text(cls.text_frame, width=80, height=24, wrap=tk.NONE)
52 cls.text.grid(row=1, column=1, sticky=tk.NSEW)
54 cls.editwin = Dummy_editwin(cls.text)
55 cls.editwin.vbar = tk.Scrollbar(cls.text_frame)
58 def tearDownClass(cls):
59 cls.editwin.per.close()
60 cls.root.update_idletasks()
61 cls.root.destroy()
62 del cls.text, cls.text_frame, cls.editwin, cls.root
399 def setUpClass(cls):
402 cls.root = root = tk.Tk()
409 cls.flist = flist = PyShellFileList(root)
413 cls.init_shell()
416 def tearDownClass(cls):
417 if cls.shell is not None:
418 cls.shell.executing = False
419 cls.shell.close()
420 cls.shell = None
421 cls.flist = None
422 cls.root.update_idletasks()
423 cls.root.destroy()
424 cls.root = None
427 def init_shell(cls):
428 cls.shell = cls.flist.open_shell()
429 cls.shell.pollinterval = 10
430 cls.root.update()
431 cls.n_preface_lines = get_lineno(cls.shell.text, 'end-1c') - 1
434 def reset_shell(cls):
435 cls.shell.per.bottom.delete(f'{cls.n_preface_lines+1}.0', 'end-1c')
436 cls.shell.shell_sidebar.update_sidebar()
437 cls.root.update()