Hi:
Yes, the script API was never guaranteed to remain stable, and certainly not when moving to a totally different tool.
from org.csstudio.display.builder.runtime.script import ScriptUtil
lz = ScriptUtil.findWidgetByName(widget, "my_label")
See also online help, Display Builder, Scripts, API, ScriptUtil
-Kay
From: [email protected] <[email protected]> on behalf of Amien Crombie <[email protected]>
Sent: Wednesday, August 16, 2017 8:48 AM
To: EPICS Tech-Talk
Subject: CSS Display Builder widgets
Hi
This simple jython code use to work in OPI:
>>> lz=display.getWidget("my_label")
but not in my new Builder version of CSS.. (CSS 4.5 running Mint 18.2)
I get
>>> NameError: name 'display' is not defined
thanks
Amien
- References:
- CSS Display Builder widgets Amien Crombie
- Navigate by Date:
- Prev:
CSS Display Builder widgets Amien Crombie
- Next:
Re: Archive Dump on Change Only J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
CSS Display Builder widgets Amien Crombie
- Next:
RE: Help with issue compiling areaDetector Driver Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|