Sign in
apache
/
tcl-site
/
d9c266ce8a0e94e9849406a4f97d65f46bbd4288
/
.
/
presentations
/
tcl
/
tcl
/
calc.tcl
blob: eff3fc67871912630afa064f38435b9e74bd398c [
file
] [
log
] [
blame
]
label
.
result -textvariable Result -anchor e
entry
.
input -textvariable Input
pack
.
result -fill both -expand
1
pack
.
input -fill both -expand
1
bind
.
input
<
Return
>
{
if
{
[
catch
{
set
Result
[
expr
$
Input
]
}
err
]
}
{
set
Result
$
err
}
}