Drop-down list in `gdf`

I am creating an interface that allows users to edit a data frame, which will then be used as input for the script. The choices that the user can enter in each cell are limited. So, I am wondering if there is a way to implement gdroplist(with each column has a different different one items) to each cell in gdf?

Hello,

Wet feet

+4
source share
2 answers

in the gWidgets2RGtk2editor in gdffor factors is a combo box in which the items to choose from are factor levels. If this works great for you, otherwise you can get rid of your RGtk2 skills. (The code for the main cell code is here .)

+4
source

There is an example in this pdf that may be useful. See page 12 for details.

Page 13 of this pdf discusses the addition of a single and double click action handler. Perhaps you can insert gdroplistinto one of the handlers.

handler = function(h,...) {
print(do.call(h$action, list(get(svalue(h$obj)))))
})

Perhaps useful:

+1
source