I have a very simple gui interface for plotting, data viewing, etc. I am using tabs for different views of the data, i.e., plots, dataframe, image overlays, etc. I set up viewing conditions and then want to press a button to change the active tab with the selected parameter view. However, the on_click method does not accept a tab. How can I call the active tabs method from a button click?
Thanks, Moody
e = Exp(name=“Experiment”)
elist = [‘exp1’, ‘exp2’ ]
we = pn.widgets.Select(name=“Experiment”, options=elist, value=‘exp1’)
vars = e.vlist()
vars.append(’’)
w = pn.widgets.Select(name=“X Variable”, options=vars, value=’’)
go = pn.widgets.Button(name=‘Do it’, button_type=‘primary’)
col = pn.Column(we, w, go, width=300)
t = pn.Tabs((‘Plot’, e.plot(we.value)))
t.extend([(‘PlotData’, e.plotd), (‘Desc’, e.desc), (‘Overlay’, e.overlay), (‘Variables’, e.vars), (‘Fixed Parms’, e.fixed)] )
go.on_click(t)
row = pn.Row(col, t)
row