widgetTools library, checkButton function
2
0
Entering edit mode
Tom Price ▴ 30
@tom-price-145
Last seen 10.3 years ago
In my R 1.8.1 version, there is a display problem with having multiple checkButtons in a widget. Checking one of the upper checkboxes changes the displayed value for one of the lower checkboxes at the same time, although the output values are correct. E <- new.env( hash= T, parent= parent.frame( 1 ) ) check1 <- checkButton( wName= "check1", wValue= c( burger=T, fries= T ), wEnv= E ) check2 <- checkButton( wName= "check2", wValue= c( coke= T, fanta= T ), wEnv= E ) w <- widget( "This fails", list( food= list( check1= check1 ), drink= list( check2= check2 ) ), env= E ) ( food <- w@pWidgets$food$check1@wValue ) ( drink <- w@pWidgets$drink$check2@wValue ) Try selecting burger, fries and coke but not fanta. Can anyone suggest a solution? Tom Price Wellcome Trust Centre for Human Genetics Oxford www.well.ox.ac.uk/~tprice Telephone: 01865 287 608 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3716 bytes Desc: not available Url : https://www.stat.math.ethz.ch/pipermail/bioconductor/attachments /20040210/be979d2a/winmail-0001.bin
• 793 views
ADD COMMENT
0
Entering edit mode
John Zhang ★ 2.9k
@john-zhang-6
Last seen 10.3 years ago
>In my R 1.8.1 version, there is a display problem with having multiple >checkButtons in a widget. Checking one of the upper checkboxes changes the >displayed value for one of the lower checkboxes at the same time, although >the output values are correct. They are probably assigned the same variable. I will have a look and fix the bug. Thank you for reporting. > >E <- new.env( hash= T, parent= parent.frame( 1 ) ) >check1 <- checkButton( wName= "check1", wValue= c( burger=T, fries= T ), >wEnv= E ) >check2 <- checkButton( wName= "check2", wValue= c( coke= T, fanta= T ), >wEnv= E ) >w <- widget( "This fails", list( food= list( check1= check1 ), > drink= list( check2= check2 ) ), env= E ) >( food <- w@pWidgets$food$check1@wValue ) >( drink <- w@pWidgets$drink$check2@wValue ) > >Try selecting burger, fries and coke but not fanta. Can anyone suggest a >solution? > >Tom Price >Wellcome Trust Centre for Human Genetics >Oxford >www.well.ox.ac.uk/~tprice >Telephone: 01865 287 608 Jianhua Zhang Department of Biostatistics Dana-Farber Cancer Institute 44 Binney Street Boston, MA 02115-6084
ADD COMMENT
0
Entering edit mode
John Zhang ★ 2.9k
@john-zhang-6
Last seen 10.3 years ago
>In my R 1.8.1 version, there is a display problem with having multiple >checkButtons in a widget. Checking one of the upper checkboxes changes the >displayed value for one of the lower checkboxes at the same time, although >the output values are correct. The bug has been fixed and reflected by the developmental version of widgetTools (1.2.3). The released version will be updated soon. Thanks. > >E <- new.env( hash= T, parent= parent.frame( 1 ) ) >check1 <- checkButton( wName= "check1", wValue= c( burger=T, fries= T ), >wEnv= E ) >check2 <- checkButton( wName= "check2", wValue= c( coke= T, fanta= T ), >wEnv= E ) >w <- widget( "This fails", list( food= list( check1= check1 ), > drink= list( check2= check2 ) ), env= E ) >( food <- w@pWidgets$food$check1@wValue ) >( drink <- w@pWidgets$drink$check2@wValue ) > >Try selecting burger, fries and coke but not fanta. Can anyone suggest a >solution? > >Tom Price >Wellcome Trust Centre for Human Genetics >Oxford >www.well.ox.ac.uk/~tprice >Telephone: 01865 287 608 Jianhua Zhang Department of Biostatistics Dana-Farber Cancer Institute 44 Binney Street Boston, MA 02115-6084
ADD COMMENT

Login before adding your answer.

Traffic: 582 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6