Hello.
I trying to write a small GUI application.
I choose wxruby library.(any gui library with unicode is good for me)
My application use threads.
Next example is not work as expecting.

require 'thread'
require 'wx'
include Wx

class MinimalApp < App
  def on_init
    f=Frame.new(nil, -1,'Test')
    f.show
  end
end

Thread.new do
  loop {
    puts 'hello'
    STDOUT.flush
    sleep(1)
  }
end

MinimalApp.new.main_loop

After starting, 'hello' messages is show repeatly only when I drag the
window and
stops when I move the focus out.
What I missed ?

Regards,
Yuri Kozlov