Closed arnobaer closed 4 years ago
refactored UI components cc63b3054ca6eab299d2abbd384a9f220daf67e5
Updated event handling approach by callbacks for UI elements.
import comet
app = comet.Application()
app.title = "Sample"
app.layout = comet.Row(
comet.Plot(id="plot", axes={...}, series={...}),
comet.Column(
comet.Button(id="refresh", text="Refresh", click=lambda e: app.get("plot").reset()),
comet.Button(id="clear", text="Clear", click=lambda e: app.get("plot").clear())
)
)
app.run()
Create simple custom UI classes to wrap PyQt5 widgets to provide an easy way to create COMET dashboards.
A bit like a simplified version of Plotly's Dash Python framework.