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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | CSS - Boolean switch |
From: | "Amien Crombie [TLABS]" <[email protected]> |
To: | EPICS Tech-Talk <[email protected]> |
Date: | Thu, 26 Feb 2015 12:42:27 +0200 |
Hi I have a XYGraph on my opi that I want to 'enable' or 'disable' by clicking a button. Looking at using the 'Boolean Switch', I cannot figure out what the 'state' is of my button for instance : in my python code I call is: from org.csstudio.opibuilder.scriptUtil import PVUtil a = display.getWidget("xBoolSwitch") if a.getPropertyValue("push_action_index") == "0": print "Enable Graph" elif a.getPropertyValue("push_action_index") == "1": print "Disable Graph" However I always get "Enable Graph" printout, even if my 'Boolean Switch' is pressed or not. Thank Amien |