(cls)
| 39 | |
| 40 | @classmethod |
| 41 | def setUpClass(cls): |
| 42 | requires('gui') |
| 43 | cls.root = tk.Tk() |
| 44 | cls.root.withdraw() |
| 45 | |
| 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) |
| 50 | |
| 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) |
| 53 | |
| 54 | cls.editwin = Dummy_editwin(cls.text) |
| 55 | cls.editwin.vbar = tk.Scrollbar(cls.text_frame) |
| 56 | |
| 57 | @classmethod |
| 58 | def tearDownClass(cls): |
nothing calls this directly
no test coverage detected