diff --git a/src/dvg_pyqtgraph_threadsafe.py b/src/dvg_pyqtgraph_threadsafe.py index 8aeb6de..2d15911 100644 --- a/src/dvg_pyqtgraph_threadsafe.py +++ b/src/dvg_pyqtgraph_threadsafe.py @@ -35,7 +35,7 @@ .. code-block:: python import sys - from PyQt5 import QtWidgets + from qtpy import QtWidgets import pyqtgraph as pg from dvg_pyqtgraph_threadsafe import HistoryChartCurve @@ -66,7 +66,7 @@ def __init__(self, parent=None, **kwargs): window.tscurve_1.update() window.show() - sys.exit(app.exec_()) + sys.exit(app.exec()) """ __author__ = "Dennis van Gils" __authoremail__ = "vangils.dennis@gmail.com" @@ -439,13 +439,6 @@ class LegendSelect(QtCore.QObject): attribute ``grid`` of type ``PyQt5.QtWidget.QGridLayout`` to be added to your GUI. - The initial visibility, name and pen of each curve will be retrieved - from the members within the passed curves, i.e.: - - * ``curve.isVisible()`` - * ``curve.name()`` - * ``curve.opts["pen"]`` - Example grid:: □ Curve 1 [ / ] @@ -453,6 +446,13 @@ class LegendSelect(QtCore.QObject): □ Curve 3 [ / ] [ Show / Hide all] + The initial visibility, name and pen of each curve will be retrieved + from the members within the passed curves, i.e.: + + * ``curve.isVisible()`` + * ``curve.name()`` + * ``curve.opts["pen"]`` + Args: linked_curves (``Sequence[pyqtgraph.PlotDataItem | ThreadSafeCurve]``): Sequence of ``pyqtgraph.PlotDataItem`` or ``ThreadSafeCurve``