Ruby 之 Tk 创建新窗口 2014/11/15 15596 #!/usr/bin/env ruby require 'tk' hello = TkRoot.new TkLabel.new( hello ) do text "\n Hello, myValue! \n" pack end Tk.mainloop