Refresh the output based on the value of the input.
(self)
| 153 | # Handle interface's updates when either encoding or decoding. |
| 154 | |
| 155 | def refresh(self): |
| 156 | "Refresh the output based on the value of the input." |
| 157 | text = self.input_text.get(1.0, END + '-1c') |
| 158 | if not text: |
| 159 | self.output = text |
| 160 | elif self.encrypting: |
| 161 | self.encode(text) |
| 162 | else: |
| 163 | self.decode(text) |
| 164 | |
| 165 | def output(self, value): |
| 166 | "Set the text in the output area to the string value." |