Setup each widget's configuration for the events they handle.
(self)
| 106 | self.output_frame.grid_columnconfigure(0, weight=1) |
| 107 | |
| 108 | def setup_widgets(self): |
| 109 | "Setup each widget's configuration for the events they handle." |
| 110 | self.input_text.bind('<Key>', self.handle_key_events) |
| 111 | self.input_text.bind('<Control-Key-a>', self.handle_control_a) |
| 112 | self.input_text.bind('<Control-Key-/>', lambda event: 'break') |
| 113 | self.output_text['state'] = DISABLED |
| 114 | self.output_text.bind('<Control-Key-a>', self.handle_control_a) |
| 115 | self.output_text.bind('<Control-Key-/>', lambda event: 'break') |
| 116 | |
| 117 | ######################################################################## |
| 118 |