cget tcl tk

package require Itcl
itcl::class Person {
    public variable name ""
    public variable phone ""
    public variable email ""

    constructor {args} {
 set aaa "sd"
 eval configure $args
    }
 destructor {}
}
Person aaa -name "aa" -phone "1243" -email "ab@cc.com"
aaa cget -name

posted @ 2011-04-25 12:22  greencolor  阅读(444)  评论(0编辑  收藏  举报