Process a user query and display the output in a new window.
(self)
| 143 | messagebox.showinfo("Training Complete", "Training is done!") |
| 144 | |
| 145 | def processing(self): |
| 146 | """ |
| 147 | Process a user query and display the output in a new window. |
| 148 | """ |
| 149 | question = self.query_entry.get() |
| 150 | |
| 151 | # When there is no query submitted by the user |
| 152 | if not question: |
| 153 | messagebox.showwarning("No Query", "Please enter a query.") |
| 154 | return |
| 155 | |
| 156 | output = self.client.query(question) |
| 157 | self.display_output(output) |
| 158 | |
| 159 | def display_output(self, output_data): |
| 160 | """ |
nothing calls this directly
no test coverage detected