From: Jon Dean Date: 2006-05-25T11:31:45+09:00 Subject: ruby tk grid question I have a frame defined within root and a TkLabel widget inside the frame. I used pack to set the location of the frame within root and am trying to use grid to set the location of the label in the frame. When I set the grid loaction to column 1, row 1 it remains centered in the page. I included "sticky => 'w' as an option to grid but it doesn't seem to work. The code I used is below. Any reason why column 1 is in the middle of the page when it is resized? root = TkRoot.new top = TkFrame.new(root) { background "white"; pack("side" => 'top', "fill" => 'x', "expand" => 1, "anchor" => 'n' ) } date = TkFrame.new(top) { background "white"; pack("side" => "top", "fill" => 'x', "expand" => 1) } TkLabel.new(date,"text"=>"Date:").grid("row" =>1,"column" =>1,"sticky" =w') Tk.mainloop -- Posted via http://www.ruby-forum.com/.