diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 0b142089cce26f26741d8d4569d874e74b9fb1c0..15f62c56af82b8c2922b745a11dbe373007d4312 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -174,10 +174,9 @@ class MainWindow(QMainWindow): if self.kie_mode: # self.keyList = QListWidget() self.keyList = UniqueLabelQListWidget() - self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged) - self.keyList.itemDoubleClicked.connect(self.editBox) - # Connect to itemChanged to detect checkbox changes. - self.keyList.itemChanged.connect(self.keyListItemChanged) + # self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged) + # self.keyList.itemDoubleClicked.connect(self.editBox) + # self.keyList.itemChanged.connect(self.keyListItemChanged) self.keyListDockName = getStr('keyListTitle') self.keyListDock = QDockWidget(self.keyListDockName, self) self.keyListDock.setWidget(self.keyList) @@ -1136,12 +1135,6 @@ class MainWindow(QMainWindow): else: self.canvas.deSelectShape() - def keyListSelectionChanged(self): - pass - - def keyListItemChanged(self): - pass - def boxSelectionChanged(self): if self._noSelectionSlot: # self.BoxList.scrollToItem(self.currentBox(), QAbstractItemView.PositionAtCenter)