Create and pack a combo box (possibly with dummy entries), then when you want to dynamically change the options call tkconfigure( comboboxobject, values = vectorwithvalues )
I think that should work, but have not tested it specifically for your case (my tkexamp function in the TeachingDemos package does something like this, but not after an entry has been filled). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-sig-gui-boun...@stat.math.ethz.ch [mailto:r-sig-gui- > boun...@stat.math.ethz.ch] On Behalf Of "João G." > Sent: Thursday, June 24, 2010 3:41 PM > To: r-sig-gui@stat.math.ethz.ch > Subject: [R-gui] TclTk dynamic dropdown list combo box > > Hi everyone, > > I'm trying to build a conditional or dynamic dropdown list that depends > on a value inserted in a tkentry field. The value in this field will be > used to subselect a data fame and so defining the values on the > dependent dropdown list. > This kind of feature is very often found in web based forms, for > example: selecting a given state fills up a second dropdown that lists > all the cities in the first option. I'm not sure but probably a button > should be used to trigger the procedure. > Up to now I've made no progress on doing this since all examples or > documentation only focus on static dropdowns. > > Thanks in advance, > João. > > _______________________________________________ > R-SIG-GUI mailing list > R-SIG-GUI@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-gui _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui