Add `ChartPlotWidget.main_viz: Viz` convenience `@property`
parent
dea1c1c2d6
commit
1ece704d6e
|
@ -178,8 +178,7 @@ def _main(
|
||||||
tractor_kwargs,
|
tractor_kwargs,
|
||||||
) -> None:
|
) -> None:
|
||||||
'''
|
'''
|
||||||
Sync entry point to start a chart: a ``tractor`` + Qt runtime
|
Sync entry point to start a chart: a ``tractor`` + Qt runtime.
|
||||||
entry point
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
run_qtractor(
|
run_qtractor(
|
||||||
|
|
|
@ -1365,4 +1365,12 @@ class ChartPlotWidget(pg.PlotWidget):
|
||||||
self,
|
self,
|
||||||
key: str,
|
key: str,
|
||||||
) -> Viz:
|
) -> Viz:
|
||||||
|
'''
|
||||||
|
Try to get an underlying ``Viz`` by key.
|
||||||
|
|
||||||
|
'''
|
||||||
return self._vizs.get(key)
|
return self._vizs.get(key)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def main_viz(self) -> Viz:
|
||||||
|
return self.get_viz(self.name)
|
||||||
|
|
Loading…
Reference in New Issue