Hi:
Pete is correct in pointing out that this question lacked context.
It's about a Jython script within a CS-Studio opibuilder display that tries to set the value of a cell in a column configured to use a checkbox.
Expected behavior would be that the checkbox is set/cleared based on the value, but that didn't happen.
I've fixed the table widget code, see https://github.com/ControlSystemStudio/cs-studio/issues/2426
Once the pull request gets merged and you fetch the latest copy of CSS, you can call "table.setCellText( 1, 1, 'Yes')" and the checkbox will be set/cleared based on that value matching the labels, which default to "No" and "Yes".
Thanks,
Kay
- References:
- Modify checkbox value from a table widget Pilar Gil Jaldo
- Re: Modify checkbox value from a table widget Kasemir, Kay
- Re: Modify checkbox value from a table widget Pilar Gil Jaldo
- Navigate by Date:
- Prev:
Re: Modify checkbox value from a table widget Pilar Gil Jaldo
- Next:
Re: Problem with autosave module making it crash at random basis. Ronald L. Sluiter
- 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:
Re: Modify checkbox value from a table widget Pilar Gil Jaldo
- Next:
Stringin - asynOctedRead type how to set string length Pilar Gil Jaldo
- 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
|