[R] R TclTk iwidgets::comboboc
James Wettenhall
wettenhall at wehi.edu.au
Wed Mar 26 23:30:15 CET 2003
Hi,
I am trying to create a drop-down combobox in R TclTk.
The following works fine for a ListBox but fails for a combobox:
################# THIS WORKS FINE - CREATES AN EMPTY LISTBOX ##
tt<-tktoplevel()
win <- .Tk.subwin(tt)
.Tcl(paste("listbox",.Tk.ID(win),.Tcl.args()))
tkpack(win)
################## THIS FAILS - ATTEMPTS TO CREATE A COMBOBOX ##
tt<-tktoplevel()
win <- .Tk.subwin(tt)
.Tcl(paste("iwidgets::combobox",.Tk.ID(win),.Tcl.args()))
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"),
class = "tclObj") :
[tcl] .
I am using R 1.6.2 (with tcltk package 1.6.2) and ActiveTcl
8.3.5.0 in Windows 2000. Below I've included some of the
relevant ActiveTcl help. I'm not sure why it has "funny characters".
#
# Nonâ.editable Dropdown Combobox
#
iwidgets::combobox .cb1 â.labeltext Month: \ â.selectioncommand
{puts «selected: [.cb1 getcurselection]"} \ â.editable false
â.listheight 185 â.popupcursor hand1 .cb1 insert list end Jan
Feb Mar Apr May June Jul Aug Sept Oct Nov Dec
BTW, Thanks very much to all organizers and presenters at the
DSC 2003 - a huge sucess!
Regards,
James
--------------------------------------------------------------------------
James Wettenhall Tel: (+61 3) 9345 2629
Division of Genetics and Bioinformatics Fax: (+61 3) 9347 0852
The Walter & Eliza Hall Institute E-mail: wettenhall at wehi.edu.au
of Medical Research, Mobile: (+61 / 0 ) 438 527 921
1G Royal Parade,
Parkville, Vic 3050, Australia
http://www.wehi.edu.au
--------------------------------------------------------------------------
More information about the R-help
mailing list