[R-gui] TclTk dynamic dropdown list combo box
Greg Snow
Greg.Snow at imail.org
Thu Jun 24 23:50:23 CEST 2010
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.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-sig-gui-bounces at stat.math.ethz.ch [mailto:r-sig-gui-
> bounces at stat.math.ethz.ch] On Behalf Of "João G."
> Sent: Thursday, June 24, 2010 3:41 PM
> To: r-sig-gui at 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 at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
More information about the R-SIG-GUI
mailing list