Snapshot/SnapshotRegionGrabber.py

changeset 3656
441956d8fce5
parent 3484
645c12de6b0c
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Module implementing a grabber widget for a rectangular snapshot region. 7 Module implementing a grabber widget for a rectangular snapshot region.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtCore import pyqtSignal, Qt, QRect, QPoint, QTimer, qVersion 12 from PyQt5.QtCore import pyqtSignal, Qt, QRect, QPoint, QTimer, qVersion
13 from PyQt4.QtGui import QWidget, QPixmap, QColor, QRegion, QApplication, \ 13 from PyQt5.QtGui import QPixmap, QColor, QRegion, QPainter, QPalette, \
14 QPainter, QPalette, QToolTip, QPaintEngine, QPen, QBrush 14 QPaintEngine, QPen, QBrush
15 from PyQt5.QtWidgets import QWidget, QApplication, QToolTip
15 16
16 17
17 def drawRect(painter, rect, outline, fill=QColor()): 18 def drawRect(painter, rect, outline, fill=QColor()):
18 """ 19 """
19 Module function to draw a rectangle with the given parameters. 20 Module function to draw a rectangle with the given parameters.

eric ide

mercurial