I’ve recently installed wxruby2 (version 1.9.4) from a precompiled
mswin32 gem. It seems to work fine, and the samples in the
distribution all work, but I have a couple of peculiar problems:
- When I package a trivial wxruby script with rubyscript2exe, the
executable is huge - 8.5 MB. With previous versions of wxruby (prior
to wxruby2, I think) it was much smaller. Less than 3 MB. Is this how
much the new wxruby takes, or am I doing something wrong ?
Note: Alex F. answered in the Ruby list that it’s a script2exe bug.
Could you please elaborate on the steps needed to reduce the exe size ?
- [warning: this is bizarre!] While running a script with a wxruby
GUI, my mouse (trackball, actually) becomes much slower. It’s
configured to be quite fast because I have a large script, but slows
down (by a factor of 2, at least) while the script is running. When
the script exits, the cursor regains its original speed. This does not
happen with simple ruby scripts (those without wxruby)
This simple hello world app (from the website) causes the problem as
class HelloWorld < App # a new class which derives from the Wx::App
def on_init # we’re defining what the application is going to do
helloframe = Frame.new(nil, -1, “Hello World”) # it’s going to
frame entitled “Hello World”
StaticText.new(helloframe,-1,“Hello World”) # it’s going to put
text “Hello World” in that frame
helloframe.show() # and then it’s going to make the window appear
HelloWorld.new.main_loop # and this line makes it actually do it!