2
我有時只有一個項目可供選擇,但該項目可能是一個帶空格的字符串。我如何在R中做到這一點?這裏是問題:如何在R中設置值到Tk組合框中
library(tcltk2)
root<-tktoplevel()
v <- tclVar()
d <- tk2combobox(root, textvariable=v)
tkpack(d)
# works
tkconfigure(d, values=c("a string with spaces", "a second string"))
# inserts four items instead of one
tkconfigure(d, values=c("a string with spaces"))
任何提示讚賞!
很好用,謝謝! – 2010-12-05 11:42:46