(self)
| 339 | self.model_path_input.setText(os.path.abspath(default_path)) |
| 340 | |
| 341 | def browse_image(self): |
| 342 | file_path, _ = QFileDialog.getOpenFileName( |
| 343 | self, |
| 344 | 'Select Image File', |
| 345 | '', |
| 346 | 'Image Files (*.png *.jpg *.jpeg *.bmp *.gif);;All Files (*.*)' |
| 347 | ) |
| 348 | if file_path: |
| 349 | self.image_path_input.setText(file_path) |
| 350 | self.display_image(file_path) |
| 351 | |
| 352 | def display_image(self, image_path): |
| 353 | try: |
nothing calls this directly
no test coverage detected