From 2132a4b04a43edd4e7a555f6fa639bb111f4f70f Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 25 Mar 2017 13:23:11 +0300 Subject: Minor code style changes --- YOSO/Workspace.py | 14 ++++++-------- 1 file 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): -- cgit v1.2.3