Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
(m) Avoid unnecessary import of QtGui and variable assignation
Browse files Browse the repository at this point in the history
- use QtGui.QTransform from Qt
- avoid redundant assigning of variable
  • Loading branch information
Carlos Pascual authored Mar 20, 2019
1 parent 97d7cd1 commit fc4a527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/taurus/qt/qtgui/graphic/taurusgraphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from taurus.core.taurusdevice import TaurusDevice
from taurus.core.taurusattribute import TaurusAttribute
from taurus.core.util.enumeration import Enumeration
from taurus.external.qt import Qt, QtGui
from taurus.external.qt import Qt
from taurus.qt.qtgui.base import TaurusBaseComponent
from taurus.qt.qtgui.util import (QT_ATTRIBUTE_QUALITY_PALETTE, QT_DEVICE_STATE_PALETTE,
ExternalAppAction, TaurusWidgetFactory)
Expand Down Expand Up @@ -879,7 +879,7 @@ def __init__(self, parent=None, scene=None):
if scene is not None:
scene.addItem(self._text)
self._text.setTransform(
QtGui.QTransform.fromScale(self._TEXT_RATIO, self._TEXT_RATIO),
Qt.QTransform.fromScale(self._TEXT_RATIO, self._TEXT_RATIO),
True)

self._validBackground = None
Expand Down Expand Up @@ -1172,7 +1172,7 @@ def updateStyle(self):
_frName = None
else:
_frName = 'rvalue.magnitude'
text = self._currText = self.getDisplayValue(fragmentName=_frName)
text = self.getDisplayValue(fragmentName=_frName)

self._currText = text
self._currHtmlText = None
Expand Down

0 comments on commit fc4a527

Please sign in to comment.