PythonQwt 0.14.0__tar.gz → 0.14.1__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.14.0/PythonQwt.egg-info → pythonqwt-0.14.1}/PKG-INFO +1 -1
- {pythonqwt-0.14.0 → pythonqwt-0.14.1/PythonQwt.egg-info}/PKG-INFO +1 -1
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/__init__.py +1 -1
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_cpudemo.py +5 -4
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_eventfilter.py +4 -1
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/utils.py +7 -4
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/LICENSE +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/MANIFEST.in +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt-tests.desktop +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt.egg-info/SOURCES.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt.egg-info/dependency_links.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt.egg-info/entry_points.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt.egg-info/requires.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/PythonQwt.egg-info/top_level.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/README.md +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/_static/PythonQwt_logo.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/_static/QwtPlot_example.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/_static/panorama.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/_static/symbol_path_example.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/conf.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/bodedemo.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/cartesian.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/cpudemo.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/curvebenchmark1.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/curvebenchmark2.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/curvedemo1.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/curvedemo2.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/data.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/errorbar.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/eventfilter.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/image.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/index.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/logcurve.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/mapdemo.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/multidemo.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/simple.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/examples/vertical.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/index.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/installation.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/overview.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/plot_example.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/graphic.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/index.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/interval.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/plot.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/plot_directpainter.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/plot_layout.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/plot_series.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/scale.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/symbol.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/text.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/toqimage.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/reference/transform.rst +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/requirements.txt +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/doc/symbol_path_example.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/pyproject.toml +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/_math.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/color_map.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/column_symbol.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/dyngrid_layout.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/graphic.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/interval.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/legend.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/null_paintdevice.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/painter.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/painter_command.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_canvas.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_curve.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_directpainter.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_grid.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_layout.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_marker.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_renderer.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/plot_series.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/qthelpers.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/scale_div.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/scale_draw.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/scale_engine.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/scale_map.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/scale_widget.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/symbol.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/__init__.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/comparative_benchmarks.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/conftest.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/PythonQwt.svg +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/bodedemo.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/cartesian.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/cpudemo.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/curvebenchmark1.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/curvebenchmark2.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/curvedemo1.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/curvedemo2.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/data.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/errorbar.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/eventfilter.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/image.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/loadtest.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/logcurve.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/mapdemo.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/multidemo.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/simple.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/stylesheet.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/symbol.svg +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/symbols.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/testlauncher.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/data/vertical.png +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_backingstore.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_bodedemo.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_cartesian.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_curvebenchmark1.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_curvebenchmark2.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_curvedemo1.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_curvedemo2.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_data.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_errorbar.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_highdpi.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_image.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_loadtest.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_logcurve.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_mapdemo.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_multidemo.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_simple.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_stylesheet.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_symbols.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/tests/test_vertical.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/text.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/toqimage.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/qwt/transform.py +0 -0
- {pythonqwt-0.14.0 → pythonqwt-0.14.1}/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.14.
|
|
58
|
+
__version__ = "0.14.1"
|
|
59
59
|
QWT_VERSION_STR = "6.1.5"
|
|
60
60
|
|
|
61
61
|
|
|
@@ -202,10 +202,11 @@ class CpuStat:
|
|
|
202
202
|
|
|
203
203
|
def __lookup(self):
|
|
204
204
|
if os.path.exists("/proc/stat"):
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
with open("/proc/stat") as file:
|
|
206
|
+
for line in file:
|
|
207
|
+
words = line.split()
|
|
208
|
+
if words[0] == "cpu" and len(words) >= 5:
|
|
209
|
+
return [float(w) for w in words[1:]]
|
|
209
210
|
else:
|
|
210
211
|
result = CpuStat.dummyValues[CpuStat.counter]
|
|
211
212
|
CpuStat.counter += 1
|
|
@@ -243,7 +243,10 @@ class CanvasPicker(QObject):
|
|
|
243
243
|
if event.type() == QEvent.FocusIn:
|
|
244
244
|
self.__showCursor(True)
|
|
245
245
|
if event.type() == QEvent.FocusOut:
|
|
246
|
-
|
|
246
|
+
try:
|
|
247
|
+
self.__showCursor(False)
|
|
248
|
+
except RuntimeError:
|
|
249
|
+
pass # ignore error when closing the application
|
|
247
250
|
if event.type() == QEvent.Paint:
|
|
248
251
|
QApplication.postEvent(self, QEvent(QEvent.User))
|
|
249
252
|
elif event.type() == QEvent.MouseButtonPress:
|
|
@@ -237,11 +237,16 @@ class TestCentralWidget(QW.QWidget):
|
|
|
237
237
|
super(TestCentralWidget, self).__init__(parent)
|
|
238
238
|
self.widget_name = widget_name
|
|
239
239
|
self.plots = None
|
|
240
|
-
self.widget_of_interest = self.parent()
|
|
241
240
|
self.setLayout(QW.QVBoxLayout())
|
|
242
241
|
self.options = TestOptions(self)
|
|
243
242
|
self.add_widget(self.options)
|
|
244
243
|
|
|
244
|
+
def get_widget_of_interest(self):
|
|
245
|
+
"""Return widget of interest"""
|
|
246
|
+
if self.plots is not None and len(self.plots) == 1:
|
|
247
|
+
return self.plots[0]
|
|
248
|
+
return self.parent()
|
|
249
|
+
|
|
245
250
|
def add_widget(self, widget):
|
|
246
251
|
"""Add new sub-widget"""
|
|
247
252
|
self.layout().addWidget(widget)
|
|
@@ -257,8 +262,6 @@ class TestCentralWidget(QW.QWidget):
|
|
|
257
262
|
plot_name, "Enable new flat style option", plot.setFlatStyle
|
|
258
263
|
)
|
|
259
264
|
widget.setChecked(plot.flatStyle())
|
|
260
|
-
if len(self.plots) == 1:
|
|
261
|
-
self.widget_of_interest = self.plots[0]
|
|
262
265
|
|
|
263
266
|
|
|
264
267
|
def take_screenshot(widget):
|
|
@@ -297,7 +300,7 @@ def test_widget(widget_class, size=None, title=None, options=True):
|
|
|
297
300
|
central_widget = TestCentralWidget(widget_name, parent=window)
|
|
298
301
|
central_widget.add_widget(widget)
|
|
299
302
|
window.setCentralWidget(central_widget)
|
|
300
|
-
widget_of_interest = central_widget.
|
|
303
|
+
widget_of_interest = central_widget.get_widget_of_interest()
|
|
301
304
|
else:
|
|
302
305
|
widget_of_interest = window
|
|
303
306
|
widget_of_interest.setObjectName(widget_name)
|
|
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
|
|
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
|