Display the output data in a new window. Args: output_data (str): The output text to be displayed.
(self, output_data)
| 157 | self.display_output(output) |
| 158 | |
| 159 | def display_output(self, output_data): |
| 160 | """ |
| 161 | Display the output data in a new window. |
| 162 | |
| 163 | Args: |
| 164 | output_data (str): The output text to be displayed. |
| 165 | """ |
| 166 | output_window = tk.Toplevel(self.root) |
| 167 | output_window.title("Output Data") |
| 168 | output_window.geometry("500x500") |
| 169 | |
| 170 | output_text = tk.Text(output_window, wrap=tk.WORD, width=50, height=50) |
| 171 | output_text.pack(padx=10, pady=10) |
| 172 | output_text.insert(tk.END, output_data) |
| 173 | |
| 174 | |
| 175 | if __name__ == "__main__": |