From: Dat Nguyen Date: 2001-11-01T03:47:46+09:00 Subject: [ruby-talk:24006] Ruby tk

Hello all,

I might miss the errata for the following codes in the Programming Ruby book:

require 'tk'
TkLabel.new { text 'Hello, World!' }
Tk.mainloop
 
I tinkered as:
require 'tk'
TkLabel.new {
    text 'Hello, World!' 
    pack
}
Tk.mainloop
 
to make it work. I wonder how to get rid of the DOS window in the background.
 
Thanks,
Dat


Get your FREE download of MSN Explorer at http://explorer.msn.com