Forum: wxRuby UpdateUIEvent.set_mode doesn't work

00e4a880b1262a125b5e342e4b536765?d=identicon&s=25 Lui Kore (night_stalker)
on 2010-02-27 18:35
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 `<main>'
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 `<main>'
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2010-03-02 00:15
(Received via mailing list)
hi

On 27/02/2010 17:35, Lui Kore 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 `<main>'
>

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

  cheers
alex
This topic is locked and can not be replied to.