개정판 9d7f0178
batch linking
Change-Id: I4321276af7eb564a3a0ec3ca805046d8574efb39
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1594 | 1594 |
self.showImageSelectionMessageBox() |
1595 | 1595 |
return |
1596 | 1596 |
|
1597 |
reply = QMessageBox.question(self, self.tr('Continue?'), |
|
1598 |
self.tr('Batch linking for selected drawings '), QMessageBox.Yes, |
|
1599 |
QMessageBox.Cancel) |
|
1600 |
if reply != QMessageBox.Yes: |
|
1601 |
return |
|
1602 |
|
|
1597 | 1603 |
self.progress_bar.setMaximum(len(checked_drawings) + 2) |
1598 | 1604 |
count = 1 |
1599 | 1605 |
self.progress_bar.setValue(count) |
... | ... | |
1613 | 1619 |
self.open_image_drawing(drawing, force=True, ocrUnknown=False) # for reset |
1614 | 1620 |
self.progress_bar.setValue(self.progress_bar.maximum()) |
1615 | 1621 |
|
1616 |
QMessageBox.about(self, self.tr("Information"), self.tr('Successfully saved.'))
|
|
1622 |
QMessageBox.about(self, self.tr("Information"), self.tr('Successfully updated.'))
|
|
1617 | 1623 |
|
1618 | 1624 |
except Exception as ex: |
1619 | 1625 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
내보내기 Unified diff