trace(self, mode, callback) Define a trace callback for the variable. MODE is one of "r", "w", "u" for read, write, undefine. Return the name of the callback. >>>import Tkinter 第一个参数可以是"r", "w"或"u",分别代表读、写、未定义。第二个参数是一个回调函数。上面的例子是,如果一个窗口变量s被写入,就调用回调函数cc。 |
Tkinter Variable
订阅:
博文评论 (Atom)
没有评论:
发表评论