[wxruby-users] Grid#get_selected_rows not working?
Alex Fenton
alex at pressure.to
Fri Mar 13 03:49:16 EDT 2009
Trans wrote:
> Hmm... that seems odd to me since I'm using row selection mode
>
> @grid.set_selection_mode(1)
>
> But yea, that seems to be the problem.
>
You didn't mention that; it definitely seems odd to me that it works
that way with the row grid select mode on. But it seems to be intended:
http://trac.wxwidgets.org/ticket/2576
http://lists.wxwidgets.org/pipermail/wx-users/2007-February/097640.html
You could file a bug/patch for wxWidgets to request a fix.
>> def get_all_selected_cells
>>
....
>
> Yes, something easier to use would be very helpful.
Well, feel free to make use of it as it stands ... with complex widgets
like Grid subclassing is often a neater way to organise code anyway.
cheers
a
More information about the wxruby-users
mailing list