Hi,
I'm trying to use scripting to populate a CSStudio/Phoebus panel/display with a set of replica of a template panel, which shows information from a single monitored entity. In total, there would be N1 copies of that template in the panel (distributed in rows
and columns). I'm following pretty much the example provided in the template sample panel.
Now, in fact I don't have 1 single set of entities, but 3 of them. So, I have two possibilitites:
a) I can create 3 similar panels, each of them showing one of these 3 sets, or
b) I can (my preferred solution, if possible) I can create 1 single panel with a Tabs or Navigator Tabs widget, with 3 pages, and show in each of them one of those 3 sets.
My only question is: how can I, from a Python script, make that the new template panel that I'm replicating is a child of one of those pages (instead of being a child of the display/panel itself). In the later case, I use:
display = widget.getDisplayModel()
to get the display handler, and then
for i in range(...):
. . .
instance = createInstance(...)
display.runtimeChildren().addChild(instance)
to add each single instance ans a child of the display.
How can I get the page handlers for the Tabs or Navigator Tabs widget, instead?
Thanks in advance,
J C
--
Jose Carlos Gonzalez
Max-Planck-Institut für Plasmaphysik
Experiment-IT - Tokamak Scenario Development - L6/18
Boltzmannstr. 2,
D-85748 Garching bei München
Phone
+49 89 3299-1698
jose.carlos.gonzalez at ipp.mpg.de