From: Mark Hahn Date: 2001-11-01T03:52:16+09:00 Subject: [ruby-talk:24008] RE: Ruby tk This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C161FA.15338220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Use rubyw instead of ruby. -----Original Message----- From: Dat Nguyen [mailto:thucdat@hotmail.com] Sent: Wednesday, October 31, 2001 10:48 AM To: ruby-talk ML 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 ------=_NextPart_000_0020_01C161FA.15338220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Use=20 rubyw instead of ruby.
-----Original Message-----
From: Dat Nguyen=20 [mailto:thucdat@hotmail.com]
Sent: Wednesday, October 31, = 2001 10:48=20 AM
To: ruby-talk ML
Subject: [ruby-talk:24006] = Ruby=20 tk

Hello all,

I might miss the errata for the following codes in the Programming = Ruby=20 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
------=_NextPart_000_0020_01C161FA.15338220--