Reputation: 4555
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
Upvotes: 4
Views: 187
Reputation: 5700
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.)
Upvotes: 4
Reputation: 21101
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:
Upvotes: 1