mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
WIP demo waveforms isorted
This commit is contained in:
@ -12,7 +12,7 @@ import json
|
||||
|
||||
import pyqtgraph as pg
|
||||
from qtpy.QtCore import Property, QPointF
|
||||
from qtpy.QtWidgets import QWidget, QVBoxLayout
|
||||
from qtpy.QtWidgets import QVBoxLayout, QWidget
|
||||
|
||||
|
||||
class WaveformPlot(QWidget):
|
||||
@ -65,7 +65,7 @@ class WaveformPlot(QWidget):
|
||||
self._curves_json = new_json
|
||||
self._rebuild_curves()
|
||||
|
||||
curvesJson = Property(str, fget=getCurvesJson, fset=setCurvesJson)
|
||||
curvesJson = Property(str, fget=getCurvesJson, fset=setCurvesJson, designable=False)
|
||||
|
||||
# ------------------------------------------------------------------------
|
||||
# Property #3: someFlag
|
||||
@ -113,9 +113,10 @@ class WaveformPlot(QWidget):
|
||||
|
||||
# Optional standalone test
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
from qtpy.QtWidgets import QApplication
|
||||
import json
|
||||
import sys
|
||||
|
||||
from qtpy.QtWidgets import QApplication
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
w = WaveformPlot()
|
||||
|
@ -17,16 +17,16 @@ import json
|
||||
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import (
|
||||
QCheckBox,
|
||||
QColorDialog,
|
||||
QDialog,
|
||||
QVBoxLayout,
|
||||
QHBoxLayout,
|
||||
QWidget,
|
||||
QDialogButtonBox,
|
||||
QHBoxLayout,
|
||||
QLabel,
|
||||
QLineEdit,
|
||||
QPushButton,
|
||||
QCheckBox,
|
||||
QColorDialog,
|
||||
QVBoxLayout,
|
||||
QWidget,
|
||||
)
|
||||
|
||||
|
||||
|
@ -5,9 +5,9 @@ It attaches "Edit Configuration..." to the WaveformPlot,
|
||||
launching WaveformPlotConfigDialog.
|
||||
"""
|
||||
|
||||
from qtpy.QtCore import Slot
|
||||
from qtpy.QtDesigner import QExtensionFactory, QPyDesignerTaskMenuExtension
|
||||
from qtpy.QtGui import QAction
|
||||
from qtpy.QtCore import Slot
|
||||
|
||||
from bec_widgets.widgets.plots_next_gen.waveform.demo.waveform_demo import WaveformPlot
|
||||
from bec_widgets.widgets.plots_next_gen.waveform.demo.waveform_plot_config_dialog import (
|
||||
|
@ -1,8 +1,8 @@
|
||||
from typing import Optional, Literal
|
||||
from typing import Literal, Optional
|
||||
|
||||
import pyqtgraph as pg
|
||||
from qtpy.QtCore import Qt
|
||||
from pydantic import BaseModel, Field
|
||||
from qtpy.QtCore import Qt
|
||||
|
||||
|
||||
class CurveConfig(BaseModel):
|
||||
|
@ -1,9 +1,9 @@
|
||||
import json
|
||||
from typing import List
|
||||
from qtpy.QtWidgets import QWidget, QVBoxLayout
|
||||
from qtpy.QtCore import Property
|
||||
|
||||
import pyqtgraph as pg
|
||||
from qtpy.QtCore import Property
|
||||
from qtpy.QtWidgets import QVBoxLayout, QWidget
|
||||
|
||||
from bec_widgets.widgets.plots_next_gen.waveform.demo_2.demo_curve import BECCurve, CurveConfig
|
||||
|
||||
|
Reference in New Issue
Block a user