Entering edit mode
mattia
▴
80
@mattia-1512
Last seen 10.2 years ago
Hi,
I have a problem with widgetTools.
I created a simple button that I would like to be associated with the
"fileBrowser" function (returning a vector of file names).
>library(tkWidgets)
>browserButton<-button(wName="browserButton",wValue="Browse",wEnv=glob
alenv(),wFuns=list(command=fileBrowser))
> browserList<-list(browser=list(browserButton=browserButton))
> test<-widget(wTitle="test",pWidgets=browserList,env=globalenv())
.. fileBrowser seems to work fine, I select some files, but I'm not
able to
retrieve the "returned" vector of file names..
> test at pWidgets[[1]][[1]]@wValue
[1] "Browse"
Where does the file-names disappear?
this is my configuration:
R version 2.1.1, 2005-06-20, x86_64-unknown-linux-gnu
attached base packages:
[1] "tools" "tcltk" "methods" "stats" "graphics"
"grDevices"
[7] "utils" "datasets" "base"
other attached packages:
tkWidgets DynDoc reposTools widgetTools
"1.5.23" "1.5.5" "1.5.19" "1.4.7"
thanks for any suggestion!
Mattia
--
Mattia Pelizzola
PhD Student
Genopolis Consortium
Milano-Bicocca University
P.zza della Scienza 4
20126 Milano (Italy)
tel:+390264483556
fax:+390264483552