aboutsummaryrefslogtreecommitdiff
path: root/test/toxy/testmess.wid
blob: 3263fa4cce29adf7d21963a4a91c7d7aaea13af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
puts setup

proc testmess_list {path target args} {
    set sum 0
    foreach a $args {
        incr sum $a
    }
    set lb [concat [lindex $args 0]]
    foreach a [lrange $args 1 end] {
        lappend lb + $a
    }
    lappend lb = $sum
    set [$path cget -textvariable] $lb
    pd [concat $target _cb $sum \;]
}

proc testmess_command {path} {
    pd [concat lb set [set [$path cget -textvariable]] \;]
}

#> testmess button
#. -bg green -wraplength 350 -text test
#. -command [concat testmess_command .-]
#. @bang .- invoke
#. @float testmess_list .- .| .#args
#. @list testmess_list .- .| .#args

puts initializer

#@ new
puts constructor

#@ free
puts destructor