text


Tcl/Tk


#!/usr/local/bin/wish4.2

text .text
pack .text

.text insert end "Hello!\n\ntext widget example"

ruby/Tk


#!/usr/local/bin/ruby

require "tk"

text = TkText.new {
  pack
}

text.insert 'end', "Hello!\n\ntext widget example"

Tk.mainloop