aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-03-25 13:23:11 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-03-25 13:27:18 +0300
commit2132a4b04a43edd4e7a555f6fa639bb111f4f70f (patch)
treee0df0e36899588f26f50c544219c3e835a01269a
parentaaf76534143e8af210c1398719a9b3fd87bf91f8 (diff)
downloadyoso-2132a4b04a43edd4e7a555f6fa639bb111f4f70f.tar.gz
Minor code style changes
-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):