[wxruby-users] constants not recognized?
Alex Fenton
alex at pressure.to
Wed Mar 4 13:53:42 EST 2009
Tim Ferrell wrote:
> I just upgraded to wxRuby 2 and am having the following issue... With
> code like this:
>
What version did you upgrade from?
> 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)
Those constants look to be missing, thanks for the report. But I don't
believe any recent change has done this.
To work around this for now you can add the defines yourself:
Wx::DD_DEFAULT_STYLE = Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER
Wx::DD_CHANGE_DIR = 0x0100
Wx::DD_DIR_MUST_EXIST = 0x0200
a
More information about the wxruby-users
mailing list