require 'tk'root = TkRoot.new3.times { |r| 4.times { |c| TkLabel.new(root) { text "row #{r}, column #{c}" }.grid('row' => r, 'column' => c, 'padx' => 10, 'pady' => 10) }}Tk.mainloop