(cls)
| 54 | |
| 55 | @classmethod |
| 56 | def setUpClass(cls): |
| 57 | requires('gui') |
| 58 | root = cls.root = Tk() |
| 59 | root.withdraw() |
| 60 | frame = cls.frame = Frame(root) |
| 61 | text = cls.text = Text(frame) |
| 62 | text.insert('1.0', code_sample) |
| 63 | # Need to pack for creation of code context text widget. |
| 64 | frame.pack(side='left', fill='both', expand=1) |
| 65 | text.grid(row=1, column=1, sticky=NSEW) |
| 66 | cls.editor = DummyEditwin(root, frame, text) |
| 67 | codecontext.idleConf.userCfg = testcfg |
| 68 | |
| 69 | @classmethod |
| 70 | def tearDownClass(cls): |