UpdateUIEvent.set_mode doesn't work

irb(main):001:0> require ‘wx’
=> true
irb(main):002:0> include Wx
=> Object
irb(main):003:0> UpdateUIEvent.set_mode 1
TypeError: Expected argument 0 of type wxUpdateUIMode, but got Fixnum 1
in SWIG method ‘wxUpdateUIEvent::SetMode’
from (irb):3:in set_mode' from (irb):3 from D:/Ruby/ruby1.9.1-mingw/bin/irb:12:in
irb(main):004:0> UPDATE_UI_PROCESS_SPECIFIED
NameError: uninitialized constant UPDATE_UI_PROCESS_SPECIFIED
from (irb):4
from D:/Ruby/ruby1.9.1-mingw/bin/irb:12:in `’

hi

On 27/02/2010 17:35, Lui K. wrote:

irb(main):003:0> UpdateUIEvent.set_mode 1
TypeError: Expected argument 0 of type wxUpdateUIMode, but got Fixnum 1
in SWIG method ‘wxUpdateUIEvent::SetMode’
from (irb):3:in set_mode' from (irb):3 from D:/Ruby/ruby1.9.1-mingw/bin/irb:12:in

Thanks for the report. Looks like a missing mapping of a C++ enum ->
Ruby Fixnum.

I’ve filed as a bug, should be a straightforward fix for the next
release
http://rubyforge.org/tracker/index.php?func=detail&aid=27910&group_id=35&atid=218

cheers
alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs