[wxruby-users] constants not recognized?

Tim Ferrell lists at ruby-forum.com
Tue Mar 3 20:53:40 EST 2009


I just upgraded to wxRuby 2 and am having the following issue... With
code like this:

  dd = Wx::DirDialog.new(@dialog,
                         'Select the folder to process...',
                         File.join(@home, 'Desktop'),
                         Wx::DD_DEFAULT_STYLE | Wx::DD_DIR_MUST_EXIST |
Wx::DD_CHANGE_DIR)
  dd.show_modal == Wx::ID_OK ? @basedir = dd.get_path : exit

I get the following error:

  uninitialized constant Wxruby2::DD_DEFAULT_STYLE (NameError)

When I remove the style flags I get no such error...  Ideas?

I am on Mac OS X and I installed via the rubyforge gem...
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list