Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  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  <20182019 
<== Date ==> <== Thread ==>

Subject: RE: CSS Boy Text Input widget perform Action after value change
From: "Abdalla Ahmad" <abdalla.ahmad@sesame.org.jo>
To: "Gregory, Ray" <gregoryrd@ornl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 10 May 2018 05:13:16 +0000

The only widget action supported in CSS is the mouse click. If you want to process the text in the text input, use a button and a script as the action. You can do something like this python script

 

text_input = display.getWidget('Widget name goes here')

text = text_input.getValue() # or text_input.getPropertyValue('text')

 

And then you can process the text as you want.

 

Best Regards,

Abdalla.

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Gregory, Ray
Sent: Wednesday, May 09, 2018 9:08 PM
To: tech-talk@aps.anl.gov
Subject: CSS Boy Text Input widget perform Action after value change

 

In a CSS Boy OPI I have a Text Input widget, and I would like to trigger an action whenever the user changes the value/presses the enter button. Just adding the desired Action to the Behavior does not appear to trigger the action when the user presses Enter. Can you please tell me what I am missing?

Thank you,

--Ray

 

 


Replies:
Re: CSS Boy Text Input widget perform Action after value change Luca Cavalli
References:
CSS Boy Text Input widget perform Action after value change Gregory, Ray

Navigate by Date:
Prev: Smaract MCS2 Motor Record Lentz, Zachary L
Next: Re: CSS Boy Text Input widget perform Action after value change Luca Cavalli
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  <20182019 
Navigate by Thread:
Prev: CSS Boy Text Input widget perform Action after value change Gregory, Ray
Next: Re: CSS Boy Text Input widget perform Action after value change Luca Cavalli
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  <20182019 
ANJ, 10 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·