4 namespace import tlc
::*
9 checkbutton .i1
-text "i1" -command [list seti i1
] -variable i1
10 checkbutton .i2
-text "i2" -command [list seti i2
] -variable i2
11 checkbutton .i3
-text "i3i" -command [list seti i3
] -variable i3
12 checkbutton .i4
-text "i4" -command [list seti i4
] -variable i4
14 checkbutton .o
-text "output" -variable o
18 $obj set_state
[set ::${line
}]
21 proc linechange
{linestate
} {
31 Gate
#auto logic -mode and
33 $logic attach_input
$i1_o
34 $logic attach_input
$i2_o
35 $logic attach_input
$i3_o inverted
36 $logic attach_input
$i4_o
38 $logic attach_var_input
::i1
39 $logic attach_var_input
::i2
40 $logic attach_var_input
::i3 inverted
41 $logic attach_var_input
::i4
44 $logic attach_output
::linechange
47 table .
-padx 5 -pady 5 \