4 ms·
Consider looking at the Inferno operating system / virtual machine: you can use Tk from the command line. If you like Google Go or Plan 9 you will love Inferno.
by robobro 7y ago
Consider looking at the Inferno operating system / virtual machine: you can use Tk from the command line. If you like Google Go or Plan 9 you will love Inferno.
http://inferno-os.org/inferno/papers/sh.html http://inferno-os.org/inferno/papers/sh.html
See how simple it is to draw a button:
load tk
wid := ${tk window 'My window'}
fn x {
args := $*
or {tk $wid $args} {
echo error on tk cmd $"args':' $status
}
}
x button .b -text {A button}
x pack .b -side top
x update