diff --git a/ui/implements/mainwindow.py b/ui/implements/mainwindow.py index 8cb2f36..9af1e58 100644 --- a/ui/implements/mainwindow.py +++ b/ui/implements/mainwindow.py @@ -23,16 +23,16 @@ class MainWindow(Ui_MainWindow, QMainWindow): super().__init__(parent) self.setupUi(self) - currentIndex = self.tabWidget.currentIndex() - ocrTabIndex = self.tabWidget.indexOf(self.tab_ocr) - self.tabWidget.removeTab(ocrTabIndex) - self.tab_ocr.deleteLater() + # currentIndex = self.tabWidget.currentIndex() + # ocrTabIndex = self.tabWidget.indexOf(self.tab_ocr) + # self.tabWidget.removeTab(ocrTabIndex) + # self.tab_ocr.deleteLater() # if OCR_ENABLED_FLAG: # self.tab_ocr = TabOcr(self.tabWidget) # else: # self.tab_ocr = TabOcrDisabled(self.tabWidget) # self.tab_ocr.contentLabel.setText(OCR_ERROR_TEXT) - self.tab_ocr = TabOcrEntry(self.tabWidget) - self.tabWidget.insertTab(ocrTabIndex, self.tab_ocr, "") - self.tabWidget.setCurrentIndex(currentIndex) - self.retranslateUi(self) + # self.tab_ocr = TabOcrEntry(self.tabWidget) + # self.tabWidget.insertTab(ocrTabIndex, self.tab_ocr, "") + # self.tabWidget.setCurrentIndex(currentIndex) + # self.retranslateUi(self)