quinta-feira, 14 de maio de 2009

Um «Olá Mundo!» pequenininho

tcl.jpg Como este blog estava muito parado, resolvi postar um «Olá Mundo!» com janela de duas linhas em Tcl/Tk:
wm title . Hello
grid [ button .bt -text { Olá Mundo! } -command exit ]


Se preferir, pode ser criado um script autoexecutável acrescentando o hash-bang:
#!/bin/sh
#\
exec wish -f "$0" ${1+"$@"}

wm title . Hello
grid [ button .bt -text { Olá Mundo! } -command exit ]


[]'s
Cacilhas, La Batalema