[wxruby-users] error in grid

Alex Fenton alex at pressure.to
Mon Nov 24 07:33:03 EST 2008


Hi Franz

Irlweg, Franz (ZNT) wrote:
> Hello,
>
> after installing wxruby-1.9.9-x86-mswin32-60.gem
> i tried the grid.rb sample:
>
> after changing the value in the checkbox and clicking on another row,
> the following error is raised:
>
>
> C:/Programme/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/sam
> ples/grid/grid.rb:81:in `initialize': undefined method 'get_row' for
> #<Wx::Rect: (62503016, 0) (112487351
>   

Thanks for the report. I think this must be the same bug as this:

http://rubyforge.org/tracker/index.php?func=detail&aid=21985&group_id=35&atid=218

I have a fix in the works but it will need recompilation.

> So i can not integrate this version in my production environment. My
> actual version is wxruby-1.9.5

If there is something critical you need from teh current release, you 
should be able to work around this by checking the class of the object 
coming into the event handler.

return unless event.kind_of?(Wx::GridEvent)

a




More information about the wxruby-users mailing list