PythonQwt 0.12.6__tar.gz → 0.12.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pythonqwt-0.12.6/PythonQwt.egg-info → pythonqwt-0.12.7}/PKG-INFO +1 -1
- {pythonqwt-0.12.6 → pythonqwt-0.12.7/PythonQwt.egg-info}/PKG-INFO +1 -1
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/__init__.py +1 -1
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/color_map.py +7 -3
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/column_symbol.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/dyngrid_layout.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/graphic.py +3 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/legend.py +7 -3
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/null_paintdevice.py +9 -9
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot.py +7 -4
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_canvas.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_directpainter.py +3 -1
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_grid.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_layout.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_marker.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_renderer.py +3 -1
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/scale_draw.py +20 -5
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/scale_widget.py +4 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/symbol.py +13 -2
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/text.py +7 -3
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/LICENSE +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/MANIFEST.in +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt-tests.desktop +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt.egg-info/SOURCES.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt.egg-info/dependency_links.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt.egg-info/entry_points.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt.egg-info/requires.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/PythonQwt.egg-info/top_level.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/README.md +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/_static/PythonQwt_logo.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/_static/QwtPlot_example.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/_static/panorama.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/_static/symbol_path_example.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/conf.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/bodedemo.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/cartesian.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/cpudemo.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/curvebenchmark1.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/curvebenchmark2.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/curvedemo1.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/curvedemo2.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/data.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/errorbar.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/eventfilter.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/image.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/index.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/logcurve.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/mapdemo.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/multidemo.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/simple.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/examples/vertical.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/index.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/installation.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/overview.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/plot_example.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/graphic.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/index.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/interval.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/plot.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/plot_directpainter.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/plot_layout.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/plot_series.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/scale.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/symbol.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/text.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/toqimage.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/reference/transform.rst +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/requirements.txt +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/doc/symbol_path_example.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/pyproject.toml +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/_math.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/interval.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/painter.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/painter_command.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_curve.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/plot_series.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/qthelpers.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/scale_div.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/scale_engine.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/scale_map.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/__init__.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/comparative_benchmarks.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/conftest.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/PythonQwt.svg +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/bodedemo.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/cartesian.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/cpudemo.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/curvebenchmark1.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/curvebenchmark2.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/curvedemo1.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/curvedemo2.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/data.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/errorbar.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/eventfilter.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/image.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/loadtest.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/logcurve.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/mapdemo.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/multidemo.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/simple.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/stylesheet.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/symbol.svg +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/symbols.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/testlauncher.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/data/vertical.png +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_backingstore.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_bodedemo.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_cartesian.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_cpudemo.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_curvebenchmark1.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_curvebenchmark2.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_curvedemo1.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_curvedemo2.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_data.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_errorbar.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_eventfilter.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_highdpi.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_image.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_loadtest.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_logcurve.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_mapdemo.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_multidemo.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_simple.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_stylesheet.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_symbols.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/test_vertical.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/tests/utils.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/toqimage.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/qwt/transform.py +0 -0
- {pythonqwt-0.12.6 → pythonqwt-0.12.7}/setup.cfg +0 -0
|
@@ -55,7 +55,7 @@ from qwt.symbol import QwtSymbol as QSbl # see deprecated section
|
|
|
55
55
|
from qwt.text import QwtText # noqa: F401
|
|
56
56
|
from qwt.toqimage import array_to_qimage as toQImage # noqa: F401
|
|
57
57
|
|
|
58
|
-
__version__ = "0.12.
|
|
58
|
+
__version__ = "0.12.7"
|
|
59
59
|
QWT_VERSION_STR = "6.1.5"
|
|
60
60
|
|
|
61
61
|
|
|
@@ -28,7 +28,7 @@ QwtAlphaColorMap
|
|
|
28
28
|
:members:
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
-
from qtpy.QtCore import Qt, qIsNaN
|
|
31
|
+
from qtpy.QtCore import QObject, Qt, qIsNaN
|
|
32
32
|
from qtpy.QtGui import QColor, qAlpha, qBlue, qGreen, qRed, qRgb, qRgba
|
|
33
33
|
|
|
34
34
|
|
|
@@ -211,8 +211,10 @@ class QwtColorMap(object):
|
|
|
211
211
|
return 0
|
|
212
212
|
|
|
213
213
|
|
|
214
|
-
class QwtLinearColorMap_PrivateData(
|
|
214
|
+
class QwtLinearColorMap_PrivateData(QObject):
|
|
215
215
|
def __init__(self):
|
|
216
|
+
QObject.__init__(self)
|
|
217
|
+
|
|
216
218
|
self.colorStops = ColorStops()
|
|
217
219
|
self.mode = None
|
|
218
220
|
|
|
@@ -322,8 +324,10 @@ class QwtLinearColorMap(QwtColorMap):
|
|
|
322
324
|
return int(ratio * 255 + 0.5)
|
|
323
325
|
|
|
324
326
|
|
|
325
|
-
class QwtAlphaColorMap_PrivateData(
|
|
327
|
+
class QwtAlphaColorMap_PrivateData(QObject):
|
|
326
328
|
def __init__(self):
|
|
329
|
+
QObject.__init__(self)
|
|
330
|
+
|
|
327
331
|
self.color = QColor()
|
|
328
332
|
self.rgb = QColor().rgb()
|
|
329
333
|
self.rgbMax = QColor().rgb()
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization
|
|
6
6
|
# (see LICENSE file for more details)
|
|
7
7
|
|
|
8
|
-
from qtpy.QtCore import QLineF, QRectF, Qt
|
|
8
|
+
from qtpy.QtCore import QLineF, QObject, QRectF, Qt
|
|
9
9
|
from qtpy.QtGui import QPalette, QPolygonF
|
|
10
10
|
|
|
11
11
|
from qwt.interval import QwtInterval
|
|
@@ -71,8 +71,10 @@ def qwtDrawPanel(painter, rect, pal, lw):
|
|
|
71
71
|
painter.fillRect(rect.adjusted(lw, lw, -lw + 1, -lw + 1), pal.window())
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
class QwtColumnSymbol_PrivateData(
|
|
74
|
+
class QwtColumnSymbol_PrivateData(QObject):
|
|
75
75
|
def __init__(self):
|
|
76
|
+
QObject.__init__(self)
|
|
77
|
+
|
|
76
78
|
self.style = QwtColumnSymbol.Box
|
|
77
79
|
self.frameStyle = QwtColumnSymbol.Raised
|
|
78
80
|
self.lineWidth = 2
|
|
@@ -15,12 +15,14 @@ The `dyngrid_layout` module provides the `QwtDynGridLayout` class.
|
|
|
15
15
|
:members:
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import QRect, QSize, Qt
|
|
18
|
+
from qtpy.QtCore import QObject, QRect, QSize, Qt
|
|
19
19
|
from qtpy.QtWidgets import QLayout
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
class QwtDynGridLayout_PrivateData(
|
|
22
|
+
class QwtDynGridLayout_PrivateData(QObject):
|
|
23
23
|
def __init__(self):
|
|
24
|
+
QObject.__init__(self)
|
|
25
|
+
|
|
24
26
|
self.isDirty = True
|
|
25
27
|
self.maxColumns = 0
|
|
26
28
|
self.numRows = 0
|
|
@@ -15,7 +15,7 @@ QwtGraphic
|
|
|
15
15
|
|
|
16
16
|
import math
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import QPointF, QRect, QRectF, QSize, QSizeF, Qt
|
|
18
|
+
from qtpy.QtCore import QObject, QPointF, QRect, QRectF, QSize, QSizeF, Qt
|
|
19
19
|
from qtpy.QtGui import (
|
|
20
20
|
QImage,
|
|
21
21
|
QPaintEngine,
|
|
@@ -185,8 +185,9 @@ class PathInfo(object):
|
|
|
185
185
|
return sy
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
class QwtGraphic_PrivateData(
|
|
188
|
+
class QwtGraphic_PrivateData(QObject):
|
|
189
189
|
def __init__(self):
|
|
190
|
+
QObject.__init__(self)
|
|
190
191
|
self.boundingRect = QRectF(0.0, 0.0, -1.0, -1.0)
|
|
191
192
|
self.pointRect = QRectF(0.0, 0.0, -1.0, -1.0)
|
|
192
193
|
self.initialTransform = None
|
|
@@ -21,7 +21,7 @@ QwtLegend
|
|
|
21
21
|
|
|
22
22
|
import math
|
|
23
23
|
|
|
24
|
-
from qtpy.QtCore import QEvent, QPoint, QRect, QRectF, QSize, Qt, Signal
|
|
24
|
+
from qtpy.QtCore import QEvent, QObject, QPoint, QRect, QRectF, QSize, Qt, Signal
|
|
25
25
|
|
|
26
26
|
# qDrawWinButton,
|
|
27
27
|
from qtpy.QtGui import QPainter, QPalette, QPixmap
|
|
@@ -170,8 +170,10 @@ def buttonShift(w):
|
|
|
170
170
|
return QSize(ph, pv)
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
class QwtLegendLabel_PrivateData(
|
|
173
|
+
class QwtLegendLabel_PrivateData(QObject):
|
|
174
174
|
def __init__(self):
|
|
175
|
+
QObject.__init__(self)
|
|
176
|
+
|
|
175
177
|
self.itemMode = QwtLegendData.ReadOnly
|
|
176
178
|
self.isDown = False
|
|
177
179
|
self.spacing = MARGIN
|
|
@@ -588,8 +590,10 @@ class LegendView(QScrollArea):
|
|
|
588
590
|
self.contentsWidget.resize(w, h)
|
|
589
591
|
|
|
590
592
|
|
|
591
|
-
class QwtLegend_PrivateData(
|
|
593
|
+
class QwtLegend_PrivateData(QObject):
|
|
592
594
|
def __init__(self):
|
|
595
|
+
QObject.__init__(self)
|
|
596
|
+
|
|
593
597
|
self.itemMode = QwtLegendData.ReadOnly
|
|
594
598
|
self.view = QwtDynGridLayout()
|
|
595
599
|
self.itemMap = QwtLegendMap()
|
|
@@ -15,13 +15,16 @@ QwtNullPaintDevice
|
|
|
15
15
|
|
|
16
16
|
import os
|
|
17
17
|
|
|
18
|
+
from qtpy.QtCore import QObject
|
|
18
19
|
from qtpy.QtGui import QPaintDevice, QPaintEngine, QPainterPath
|
|
19
20
|
|
|
20
21
|
QT_API = os.environ["QT_API"]
|
|
21
22
|
|
|
22
23
|
|
|
23
|
-
class QwtNullPaintDevice_PrivateData(
|
|
24
|
+
class QwtNullPaintDevice_PrivateData(QObject):
|
|
24
25
|
def __init__(self):
|
|
26
|
+
QObject.__init__(self)
|
|
27
|
+
|
|
25
28
|
self.mode = QwtNullPaintDevice.NormalMode
|
|
26
29
|
|
|
27
30
|
|
|
@@ -51,7 +54,6 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
51
54
|
try:
|
|
52
55
|
QPaintEngine.drawRects(self, rects, rectCount)
|
|
53
56
|
except TypeError:
|
|
54
|
-
# PyQt <=4.9
|
|
55
57
|
QPaintEngine.drawRects(self, rects)
|
|
56
58
|
return
|
|
57
59
|
device.drawRects(rects, rectCount)
|
|
@@ -64,9 +66,8 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
64
66
|
return
|
|
65
67
|
if device.mode() != QwtNullPaintDevice.NormalMode and QT_API.startswith("pyqt"):
|
|
66
68
|
try:
|
|
67
|
-
QPaintEngine.drawLines(lines, lineCount)
|
|
69
|
+
QPaintEngine.drawLines(self, lines, lineCount)
|
|
68
70
|
except TypeError:
|
|
69
|
-
# PyQt <=4.9
|
|
70
71
|
QPaintEngine.drawLines(self, lines)
|
|
71
72
|
return
|
|
72
73
|
device.drawLines(lines, lineCount)
|
|
@@ -76,7 +77,7 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
76
77
|
if device is None:
|
|
77
78
|
return
|
|
78
79
|
if device.mode() != QwtNullPaintDevice.NormalMode:
|
|
79
|
-
QPaintEngine.drawEllipse(rect)
|
|
80
|
+
QPaintEngine.drawEllipse(self, rect)
|
|
80
81
|
return
|
|
81
82
|
device.drawEllipse(rect)
|
|
82
83
|
|
|
@@ -94,9 +95,8 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
94
95
|
return
|
|
95
96
|
if device.mode() != QwtNullPaintDevice.NormalMode:
|
|
96
97
|
try:
|
|
97
|
-
QPaintEngine.drawPoints(points, pointCount)
|
|
98
|
+
QPaintEngine.drawPoints(self, points, pointCount)
|
|
98
99
|
except TypeError:
|
|
99
|
-
# PyQt <=4.9
|
|
100
100
|
QPaintEngine.drawPoints(self, points)
|
|
101
101
|
return
|
|
102
102
|
device.drawPoints(points, pointCount)
|
|
@@ -135,7 +135,7 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
135
135
|
if device is None:
|
|
136
136
|
return
|
|
137
137
|
if device.mode() != QwtNullPaintDevice.NormalMode:
|
|
138
|
-
QPaintEngine.drawTextItem(pos, textItem)
|
|
138
|
+
QPaintEngine.drawTextItem(self, pos, textItem)
|
|
139
139
|
return
|
|
140
140
|
device.drawTextItem(pos, textItem)
|
|
141
141
|
|
|
@@ -144,7 +144,7 @@ class QwtNullPaintDevice_PaintEngine(QPaintEngine):
|
|
|
144
144
|
if device is None:
|
|
145
145
|
return
|
|
146
146
|
if device.mode() != QwtNullPaintDevice.NormalMode:
|
|
147
|
-
QPaintEngine.drawTiledPixmap(rect, pixmap, subRect)
|
|
147
|
+
QPaintEngine.drawTiledPixmap(self, rect, pixmap, subRect)
|
|
148
148
|
return
|
|
149
149
|
device.drawTiledPixmap(rect, pixmap, subRect)
|
|
150
150
|
|
|
@@ -22,7 +22,7 @@ QwtPlotItem
|
|
|
22
22
|
import math
|
|
23
23
|
|
|
24
24
|
import numpy as np
|
|
25
|
-
from qtpy.QtCore import QEvent, QRectF, QSize, Qt, Signal
|
|
25
|
+
from qtpy.QtCore import QEvent, QObject, QRectF, QSize, Qt, Signal
|
|
26
26
|
from qtpy.QtGui import QBrush, QColor, QFont, QPainter, QPalette
|
|
27
27
|
from qtpy.QtWidgets import QApplication, QFrame, QSizePolicy, QWidget
|
|
28
28
|
|
|
@@ -75,9 +75,10 @@ class ItemList(list):
|
|
|
75
75
|
self.sortItems()
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
class QwtPlot_PrivateData(
|
|
78
|
+
class QwtPlot_PrivateData(QObject):
|
|
79
79
|
def __init__(self):
|
|
80
|
-
|
|
80
|
+
QObject.__init__(self)
|
|
81
|
+
|
|
81
82
|
self.itemList = ItemList()
|
|
82
83
|
self.titleLabel = None
|
|
83
84
|
self.footerLabel = None
|
|
@@ -1691,8 +1692,10 @@ class QwtPlot(QFrame):
|
|
|
1691
1692
|
renderer.renderDocument(self, filename, size_mm, resolution, format_)
|
|
1692
1693
|
|
|
1693
1694
|
|
|
1694
|
-
class QwtPlotItem_PrivateData(
|
|
1695
|
+
class QwtPlotItem_PrivateData(QObject):
|
|
1695
1696
|
def __init__(self):
|
|
1697
|
+
QObject.__init__(self)
|
|
1698
|
+
|
|
1696
1699
|
self.plot = None
|
|
1697
1700
|
self.isVisible = True
|
|
1698
1701
|
self.attributes = 0
|
|
@@ -15,7 +15,7 @@ QwtPlotCanvas
|
|
|
15
15
|
|
|
16
16
|
import os
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import QEvent, QPoint, QPointF, QRect, QRectF, QSize, Qt
|
|
18
|
+
from qtpy.QtCore import QEvent, QObject, QPoint, QPointF, QRect, QRectF, QSize, Qt
|
|
19
19
|
from qtpy.QtGui import (
|
|
20
20
|
QBrush,
|
|
21
21
|
QGradient,
|
|
@@ -329,8 +329,10 @@ class StyleSheet(object):
|
|
|
329
329
|
self.background = StyleSheetBackground()
|
|
330
330
|
|
|
331
331
|
|
|
332
|
-
class QwtPlotCanvas_PrivateData(
|
|
332
|
+
class QwtPlotCanvas_PrivateData(QObject):
|
|
333
333
|
def __init__(self):
|
|
334
|
+
QObject.__init__(self)
|
|
335
|
+
|
|
334
336
|
self.focusIndicator = QwtPlotCanvas.NoFocusIndicator
|
|
335
337
|
self.borderRadius = 0
|
|
336
338
|
self.paintAttributes = 0
|
|
@@ -39,8 +39,10 @@ def qwtHasBackingStore(canvas):
|
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class QwtPlotDirectPainter_PrivateData(
|
|
42
|
+
class QwtPlotDirectPainter_PrivateData(QObject):
|
|
43
43
|
def __init__(self):
|
|
44
|
+
QObject.__init__(self)
|
|
45
|
+
|
|
44
46
|
self.attributes = 0
|
|
45
47
|
self.hasClipping = False
|
|
46
48
|
self.seriesItem = None # QwtPlotSeriesItem
|
|
@@ -13,7 +13,7 @@ QwtPlotGrid
|
|
|
13
13
|
:members:
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
from qtpy.QtCore import QLineF, Qt
|
|
16
|
+
from qtpy.QtCore import QLineF, QObject, Qt
|
|
17
17
|
from qtpy.QtGui import QPen
|
|
18
18
|
|
|
19
19
|
from qwt._math import qwtFuzzyGreaterOrEqual, qwtFuzzyLessOrEqual
|
|
@@ -22,8 +22,10 @@ from qwt.qthelpers import qcolor_from_str
|
|
|
22
22
|
from qwt.scale_div import QwtScaleDiv
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class QwtPlotGrid_PrivateData(
|
|
25
|
+
class QwtPlotGrid_PrivateData(QObject):
|
|
26
26
|
def __init__(self):
|
|
27
|
+
QObject.__init__(self)
|
|
28
|
+
|
|
27
29
|
self.xEnabled = True
|
|
28
30
|
self.yEnabled = True
|
|
29
31
|
self.xMinEnabled = False
|
|
@@ -15,7 +15,7 @@ QwtPlotLayout
|
|
|
15
15
|
|
|
16
16
|
import math
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import QRectF, QSize, Qt
|
|
18
|
+
from qtpy.QtCore import QObject, QRectF, QSize, Qt
|
|
19
19
|
from qtpy.QtGui import QFont, QRegion
|
|
20
20
|
|
|
21
21
|
from qwt.plot import QwtPlot
|
|
@@ -143,8 +143,10 @@ class QwtPlotLayout_LayoutData(object):
|
|
|
143
143
|
]
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
class QwtPlotLayout_PrivateData(
|
|
146
|
+
class QwtPlotLayout_PrivateData(QObject):
|
|
147
147
|
def __init__(self):
|
|
148
|
+
QObject.__init__(self)
|
|
149
|
+
|
|
148
150
|
self.spacing = 5
|
|
149
151
|
self.titleRect = QRectF()
|
|
150
152
|
self.footerRect = QRectF()
|
|
@@ -13,7 +13,7 @@ QwtPlotMarker
|
|
|
13
13
|
:members:
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
from qtpy.QtCore import QLineF, QPointF, QRect, QRectF, QSizeF, Qt
|
|
16
|
+
from qtpy.QtCore import QLineF, QObject, QPointF, QRect, QRectF, QSizeF, Qt
|
|
17
17
|
from qtpy.QtGui import QPainter, QPen
|
|
18
18
|
|
|
19
19
|
from qwt.graphic import QwtGraphic
|
|
@@ -23,8 +23,10 @@ from qwt.symbol import QwtSymbol
|
|
|
23
23
|
from qwt.text import QwtText
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class QwtPlotMarker_PrivateData(
|
|
26
|
+
class QwtPlotMarker_PrivateData(QObject):
|
|
27
27
|
def __init__(self):
|
|
28
|
+
QObject.__init__(self)
|
|
29
|
+
|
|
28
30
|
self.labelAlignment = Qt.AlignCenter
|
|
29
31
|
self.labelOrientation = Qt.Horizontal
|
|
30
32
|
self.spacing = 2
|
|
@@ -55,8 +55,10 @@ def qwtCanvasClip(canvas, canvasRect):
|
|
|
55
55
|
return canvas.borderPath(r)
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
class QwtPlotRenderer_PrivateData(
|
|
58
|
+
class QwtPlotRenderer_PrivateData(QObject):
|
|
59
59
|
def __init__(self):
|
|
60
|
+
QObject.__init__(self)
|
|
61
|
+
|
|
60
62
|
self.discardFlags = QwtPlotRenderer.DiscardNone
|
|
61
63
|
self.layoutFlags = QwtPlotRenderer.DefaultLayout
|
|
62
64
|
|
|
@@ -21,7 +21,16 @@ QwtScaleDraw
|
|
|
21
21
|
|
|
22
22
|
import math
|
|
23
23
|
|
|
24
|
-
from qtpy.QtCore import
|
|
24
|
+
from qtpy.QtCore import (
|
|
25
|
+
QLineF,
|
|
26
|
+
QObject,
|
|
27
|
+
QPoint,
|
|
28
|
+
QPointF,
|
|
29
|
+
QRect,
|
|
30
|
+
QRectF,
|
|
31
|
+
Qt,
|
|
32
|
+
qFuzzyCompare,
|
|
33
|
+
)
|
|
25
34
|
from qtpy.QtGui import QFontMetrics, QPalette, QTransform
|
|
26
35
|
|
|
27
36
|
from qwt._math import qwtRadians
|
|
@@ -30,8 +39,10 @@ from qwt.scale_map import QwtScaleMap
|
|
|
30
39
|
from qwt.text import QwtText
|
|
31
40
|
|
|
32
41
|
|
|
33
|
-
class QwtAbstractScaleDraw_PrivateData(
|
|
42
|
+
class QwtAbstractScaleDraw_PrivateData(QObject):
|
|
34
43
|
def __init__(self):
|
|
44
|
+
QObject.__init__(self)
|
|
45
|
+
|
|
35
46
|
self.spacing = 4
|
|
36
47
|
self.penWidth = 0
|
|
37
48
|
self.minExtent = 0.0
|
|
@@ -233,7 +244,8 @@ class QwtAbstractScaleDraw(object):
|
|
|
233
244
|
Draw the scale
|
|
234
245
|
|
|
235
246
|
:param QPainter painter: The painter
|
|
236
|
-
:param QPalette palette: Palette, text color is used for the labels,
|
|
247
|
+
:param QPalette palette: Palette, text color is used for the labels,
|
|
248
|
+
foreground color for ticks and backbone
|
|
237
249
|
"""
|
|
238
250
|
painter.save()
|
|
239
251
|
|
|
@@ -457,8 +469,10 @@ class QwtAbstractScaleDraw(object):
|
|
|
457
469
|
self.__data.labelCache.clear()
|
|
458
470
|
|
|
459
471
|
|
|
460
|
-
class QwtScaleDraw_PrivateData(
|
|
472
|
+
class QwtScaleDraw_PrivateData(QObject):
|
|
461
473
|
def __init__(self):
|
|
474
|
+
QObject.__init__(self)
|
|
475
|
+
|
|
462
476
|
self.len = 0
|
|
463
477
|
self.alignment = QwtScaleDraw.BottomScale
|
|
464
478
|
self.labelAlignment = 0
|
|
@@ -1048,7 +1062,8 @@ class QwtScaleDraw(QwtAbstractScaleDraw):
|
|
|
1048
1062
|
adjust the label flags too. Finding a useful combination is
|
|
1049
1063
|
often the result of try and error.
|
|
1050
1064
|
|
|
1051
|
-
:param float rotation: Angle in degrees. When changing the label rotation, the
|
|
1065
|
+
:param float rotation: Angle in degrees. When changing the label rotation, the
|
|
1066
|
+
label flags often needs to be adjusted too.
|
|
1052
1067
|
|
|
1053
1068
|
.. seealso::
|
|
1054
1069
|
|
|
@@ -15,7 +15,7 @@ QwtScaleWidget
|
|
|
15
15
|
|
|
16
16
|
import math
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import QRectF, QSize, Qt, Signal
|
|
18
|
+
from qtpy.QtCore import QObject, QRectF, QSize, Qt, Signal
|
|
19
19
|
from qtpy.QtGui import QPainter, QPalette
|
|
20
20
|
from qtpy.QtWidgets import QSizePolicy, QStyle, QStyleOption, QWidget
|
|
21
21
|
|
|
@@ -35,8 +35,10 @@ class ColorBar(object):
|
|
|
35
35
|
self.colorMap = QwtColorMap()
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class QwtScaleWidget_PrivateData(
|
|
38
|
+
class QwtScaleWidget_PrivateData(QObject):
|
|
39
39
|
def __init__(self):
|
|
40
|
+
QObject.__init__(self)
|
|
41
|
+
|
|
40
42
|
self.scaleDraw = None
|
|
41
43
|
self.borderDist = [None] * 2
|
|
42
44
|
self.minBorderDist = [None] * 2
|
|
@@ -15,7 +15,17 @@ QwtSymbol
|
|
|
15
15
|
|
|
16
16
|
import math
|
|
17
17
|
|
|
18
|
-
from qtpy.QtCore import
|
|
18
|
+
from qtpy.QtCore import (
|
|
19
|
+
QLineF,
|
|
20
|
+
QObject,
|
|
21
|
+
QPoint,
|
|
22
|
+
QPointF,
|
|
23
|
+
QRect,
|
|
24
|
+
QRectF,
|
|
25
|
+
QSize,
|
|
26
|
+
QSizeF,
|
|
27
|
+
Qt,
|
|
28
|
+
)
|
|
19
29
|
from qtpy.QtGui import (
|
|
20
30
|
QBrush,
|
|
21
31
|
QPainter,
|
|
@@ -334,8 +344,9 @@ def qwtDrawHexagonSymbols(painter, points, symbol):
|
|
|
334
344
|
painter.drawPolygon(QPolygonF(hexa))
|
|
335
345
|
|
|
336
346
|
|
|
337
|
-
class QwtSymbol_PrivateData(
|
|
347
|
+
class QwtSymbol_PrivateData(QObject):
|
|
338
348
|
def __init__(self, st, br, pn, sz):
|
|
349
|
+
QObject.__init__(self)
|
|
339
350
|
self.style = st
|
|
340
351
|
self.size = sz
|
|
341
352
|
self.brush = br
|
|
@@ -47,7 +47,7 @@ import math
|
|
|
47
47
|
import os
|
|
48
48
|
import struct
|
|
49
49
|
|
|
50
|
-
from qtpy.QtCore import QRectF, QSize, QSizeF, Qt
|
|
50
|
+
from qtpy.QtCore import QObject, QRectF, QSize, QSizeF, Qt
|
|
51
51
|
from qtpy.QtGui import (
|
|
52
52
|
QAbstractTextDocumentLayout,
|
|
53
53
|
QColor,
|
|
@@ -457,8 +457,10 @@ class QwtRichTextEngine(QwtTextEngine):
|
|
|
457
457
|
return 0, 0, 0, 0
|
|
458
458
|
|
|
459
459
|
|
|
460
|
-
class QwtText_PrivateData(
|
|
460
|
+
class QwtText_PrivateData(QObject):
|
|
461
461
|
def __init__(self):
|
|
462
|
+
QObject.__init__(self)
|
|
463
|
+
|
|
462
464
|
self.renderFlags = Qt.AlignCenter
|
|
463
465
|
self.borderRadius = 0
|
|
464
466
|
self.borderPen = Qt.NoPen
|
|
@@ -1104,8 +1106,10 @@ class QwtText(object):
|
|
|
1104
1106
|
self.__map.setdefault(format_, engine)
|
|
1105
1107
|
|
|
1106
1108
|
|
|
1107
|
-
class QwtTextLabel_PrivateData(
|
|
1109
|
+
class QwtTextLabel_PrivateData(QObject):
|
|
1108
1110
|
def __init__(self):
|
|
1111
|
+
QObject.__init__(self)
|
|
1112
|
+
|
|
1109
1113
|
self.indent = 4
|
|
1110
1114
|
self.margin = 0
|
|
1111
1115
|
self.text = QwtText()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|