Skip to content

Commit

Permalink
Merge pull request #1074 from astrofrog/qtpy-fixes
Browse files Browse the repository at this point in the history
Fixes following transition to QtPy
  • Loading branch information
astrofrog authored Aug 15, 2016
2 parents 9eff43c + 1b81747 commit 5b3dba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glue/viewers/common/qt/mpl_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import matplotlib
from matplotlib.figure import Figure

from qtpy import QtCore, QtWidgets
from qtpy import QtCore, QtGui, QtWidgets
from qtpy.QtCore import Qt
from qtpy import PYQT5
from glue.utils import DeferredMethod
Expand Down Expand Up @@ -108,7 +108,7 @@ def paintEvent(self, event):
except TypeError: # mpl 1.4
x, y, w, h = drawRect
p = QtGui.QPainter(self)
p.setPen(QtWidgets.QPen(Qt.red, 2, Qt.DotLine))
p.setPen(QtGui.QPen(Qt.red, 2, Qt.DotLine))
p.drawRect(x, y, w, h)
p.end()

Expand Down

0 comments on commit 5b3dba7

Please sign in to comment.