From: wiz_pendases@... Date: 2007-10-26T11:10:08+09:00 Subject: Ruby TK i know im doing alot wrong, but i need all the help i can get...so....plz spare the time, thanks here is what i got --- irb # Start up Tk with Ruby require 'tk' root = TkRoot.new {title "Homework #4"} top = TkFrame.new(root) { relief 'raised'; border 5 } TkButton.new(top) do text "Clear" command { delete(0,0, end) } pack('side' => 'left', 'padx' => 15, 'pady' => 15) end TkButton.new(top) do text "Cancel" command { exit } pack('side' => 'left', 'padx' => 15, 'pady' => 15) end TkText.new(top) do borderwidth 4 highlightthickness 2 highlightcolor 'black' pack('side' => 'right', 'fill' => 'both', 'expand' => true) end TkLabel.new(top) { text 'File:' ; pack('padx' => 15, 'pady' => 15) } @text = TkVariable.new(right) do TkEntry.new(right, 'textvariable' => @text).pack('side' => 'bottom', 'padx' => 15, 'pady' => 15) end top.pack('fill' => 'both', 'side' => 'top') Tk.mainloop ---------------------------------------- this is what im trying to get....