Micah Martin wrote:> I tried out the sugar. The following code crashes:
>
> require ''rubygems''
> require ''wx''
> require ''wx_sugar/all''
> frame = Wx::Frame.new(nil, :title => "Text")
> panel = Wx::Panel.new(frame)
You didn''t create a Wx::App? Please try to run the constructors for
Frame and Panel within an on_init method of a Wx::App subclass, as per
the samples.
This seems to be a common misunderstanding, so I wonder if we should
make it raise an exception if a ctor is called outside on_init?
cheers
alex