문제

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

도움이 되었습니까?

해결책

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.)

다른 팁

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:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top