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 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
<== Date ==> <== Thread ==>

Subject: Tab Container set focus
From: Amien WORK <acrombie@tlabs.ac.za>
To: EPICS Tech-Talk <tech-talk@aps.anl.gov>
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  <2017
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  <2017
ANJ, 29 Nov 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·