aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--YOSO/Workspace.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/YOSO/Workspace.py b/YOSO/Workspace.py
index de3000e..08057a9 100644
--- a/YOSO/Workspace.py
+++ b/YOSO/Workspace.py
@@ -3,13 +3,11 @@ import os
import YOSO
-from PyQt5.QtCore import ( pyqtSlot, QIODevice,
- QModelIndex, QPointF, QRectF, QSaveFile, Qt )
+from PyQt5.QtCore import (pyqtSlot, QIODevice,
+ QModelIndex, QPointF, QRectF, QSaveFile, Qt)
from PyQt5.QtGui import QColor, QPen, QPixmap, QTransform
-from PyQt5.QtWidgets import ( QGraphicsItem, QGraphicsRectItem,
- QGraphicsScene, QGraphicsView )
-
-from pprint import pprint
+from PyQt5.QtWidgets import (QGraphicsItem, QGraphicsRectItem,
+ QGraphicsScene, QGraphicsView)
BBOX = QGraphicsItem.UserType + 1
@@ -215,10 +213,10 @@ class Workspace(QGraphicsView):
self.fitInView(scene_rect, Qt.KeepAspectRatio)
@pyqtSlot(QModelIndex, QModelIndex)
- def setDefaultClass(self, curr, prev):
+ def setDefaultClass(self, curr, _):
self._scene.setDefaultClass(curr.data(Qt.UserRole))
- def resizeEvent(self, event):
+ def resizeEvent(self, _):
self._fit()
def loadImage(self, image_path, label_path):