27 lines
720 B
Python
27 lines
720 B
Python
import ch.psi.utils.swing.SwingUtils as SwingUtils
|
|
import ScientaParametersPanel
|
|
import ScientaParametersDialog
|
|
|
|
"""
|
|
pn = ScientaParametersPanel()
|
|
pn.setDevice(scienta)
|
|
SwingUtils.showDialog(App.getInstance().getMainFrame(), "Scienta", None, pn)
|
|
time.sleep(1.0)
|
|
pars = pn.values
|
|
for k in pars.keySet() : print k,"=",pars[k]
|
|
"""
|
|
|
|
|
|
dlg = ScientaParametersDialog(App.getInstance().getMainFrame(),True, None)
|
|
dlg.visible=True
|
|
if dlg.result:
|
|
pars = dlg.values
|
|
for k in pars.keySet() : print k,"=",pars[k]
|
|
|
|
|
|
dlg = ScientaParametersDialog(App.getInstance().getMainFrame(),True, pars)
|
|
dlg.visible=True
|
|
if dlg.result:
|
|
pars = dlg.values
|
|
for k in pars.keySet() : print k,"=",pars[k]
|
|
|