(self)
| 386 | msgbox.exec() |
| 387 | |
| 388 | def pb_dbase_clicked(self): |
| 389 | dlg = DialogSelectScan() |
| 390 | if dlg.exec() == QDialog.Accepted: |
| 391 | mode, id_uid = dlg.get_id_uid() |
| 392 | |
| 393 | self.signal_loading_new_run.emit() |
| 394 | |
| 395 | def cb(id_uid): |
| 396 | result_dict = {} |
| 397 | try: |
| 398 | msg, file_name = self.gpc.load_run_from_db(id_uid) |
| 399 | status = True |
| 400 | except Exception as ex: |
| 401 | msg, file_name = str(ex), "" |
| 402 | status = False |
| 403 | result_dict.update({"status": status, "msg": msg, "id_uid": id_uid, "file_name": file_name}) |
| 404 | return result_dict |
| 405 | |
| 406 | self._compute_in_background(cb, self.slot_dbase_clicked, id_uid=id_uid) |
| 407 | |
| 408 | @Slot(object) |
| 409 | def slot_dbase_clicked(self, result): |
nothing calls this directly
no test coverage detected