EPICS Home

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  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Tab Container set focus
From: Amien WORK <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Wed, 29 Nov 2017 08:32:22 +0200

Hi

###################################

from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
from org.csstudio.opibuilder.scriptUtil import DataUtil
from org.csstudio.opibuilder.scriptUtil import ScriptUtil
from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
from org.eclipse.jface.dialogs import MessageDialog

xTab = display.getWidget("HarpTab")
pv0=PVUtil.getDouble(pvs[0])
pv1=PVUtil.getLong(pvs[1])

if(pv0==1):
    xTab.setPropertyValue("enabled", True)
    xTab.setPropertyValue("active_tab", pv1)
else:
    xTab.setPropertyValue("enabled", False)


###########################################

The above script works as it selects the right index from pv1.

However, the tab is selected but has not focus until someone actually clicks on the Tab.

Any ideas on how this can be done inside my script?

Thanks




Navigate by Date:
Prev: Re: time stamp on vxWorks jumping to the future Zimoch Dirk (PSI)
Next: pvaPy status renato sanhueza
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EDM Hoff Video Widget and Bits Per Pixel Mark Rivers
Next: pvaPy status renato sanhueza
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024