Question

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

Regards,

Wet Feet

Was it helpful?

Solution

in gWidgets2RGtk2 the editor in gdf for factors is a combobox where the items to choose from are the levels of the factor. If that works for you great, otherwise you can dust off your RGtk2 skills. (The basic cell editor code is here.)

OTHER TIPS

This pdf has an example that might be helpful. See the details on page 12.

Page 13 of this pdf discusses adding a handler to the single and double click actions. Perhaps you could insert the gdroplist to one of the handlers.

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

Possibly helpful:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top