Alex Fenton wrote:
> Looks OK to me. I guess it's just because calling fit
causes a repaint,
> which isn't otherwise visible. Hopefully using the
threads right will
> resolve this
>
Hey Alex -
I tried your suggestion, removing Thread#join in favor of a
polling
loop... and I still see the same odd painting errors on XP
and the GUI
remains unresponsive to user interaction (no matter how hard
I click
*grin*)...
Maybe I'm just not understanding this clearly... as I see it
there are 3
threads involved here: the main program thread, the gui
thread spawned
by Wx::App.main_loop, and the thread I am spawning to wrap
the open-uri
call... I think I have a handle on having them all pass off
to each
other and the app works fine on my mac and on Ubuntu - in
both my test
app and the full program I only see the painting problems
and
unresponsiveness under Windows...
Could this be the result of some bug in wxWidgets? What
version is
bundled with the wxRuby gem? If it would help I'd be happy
to try and
set up a debuggable environment here ... I assume I'd need
VC6 to
compile since that is what the One-Click installer uses but
are there
any special steps I'd need to take with wxMSW and wxRuby? Is
there,
perhaps, a guide to setting up all of this from source?
In any case, thanks much to you and Mario both for your help
and
suggestions thus far
Cheers,
Tim
--
Posted via http://www.ruby-forum.com
/.
_______________________________________________
wxruby-users mailing list
wxruby-users rubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
|