Forum: wxRuby UpdateUIEvent.set_mode doesn't work

Posted by 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>'
Posted by 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.