Yuri Kozlov
12/7/2005 1:12:00 PM
Aha.
Tkruby is much better.
October 13, subject "threading in win32" by Ara.T.Howard
require "tk"
thread_runner = lambda do
Thread::new do
loop {
puts 'hello'
STDOUT.flush
sleep(1)
}
end
en
TkButton::new(nil,
"text" => "start thread/process",
"command" => thread_runner).pack( "fill" =>"x")
TkButton::new(nil,
"text" => 'quit',
"command" => lambda{exit}).pack("fill" => "x")
Tk::mainloop
The problem is solved.
Regards,
Yuri Kozlov