清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'tk'
root = TkRoot.new
3.times { |r|
4.times { |c|
TkLabel.new(root) {
text "row #{r}, column #{c}"
}.grid('row' => r, 'column' => c, 'padx' => 10, 'pady' => 10)
}
}
Tk.mainloop