lokheart
lokheart

Reputation: 24675

Selecting a row in a dataframe in RGTK2

I want to perform something like the one below:

I wonder if this can be done using RGtk2. Thanks.

Upvotes: 1

Views: 141

Answers (1)

jverzani
jverzani

Reputation: 5700

Yes, of course. Have a look at: https://github.com/jverzani/gWidgets2RGtk2/blob/master/R/gtable.R . You can pull out most of the first request in the initialize method and the second in the set_selected and get_selected methods. The task is made much easier (and faster!) by Michael Lawrence's rGtkDataFrame constructor to turn data frames into models that RGtk2's views can use quite easier.

Upvotes: 1

Related Questions