S
STEPHEN BECKER I V
Just trying a TK example i found and i get an error
####code
br = ["one", "and", "one"].collect { |c|
TkButton.new(root, "text"=>c)
}
TkGrid.grid(br[0], br[1], br[2], "columnspan"=>2 )
TkButton.new(root, "text"=>"is").grid("columnspan"=>3, "sticky"=>"ew")
TkButton.new(root, "text"=>"two").grid("row"=>1, "col"=>3, "columnspan"=>3)
Tk.mainloop
####code
The error is
Z:/ruby/playfair_final.rb:56: undefined method `grid' for
TkGrid:Module (NoMethodError)
Becker
####code
br = ["one", "and", "one"].collect { |c|
TkButton.new(root, "text"=>c)
}
TkGrid.grid(br[0], br[1], br[2], "columnspan"=>2 )
TkButton.new(root, "text"=>"is").grid("columnspan"=>3, "sticky"=>"ew")
TkButton.new(root, "text"=>"two").grid("row"=>1, "col"=>3, "columnspan"=>3)
Tk.mainloop
####code
The error is
Z:/ruby/playfair_final.rb:56: undefined method `grid' for
TkGrid:Module (NoMethodError)
Becker