comparison light8/uihelpers.py @ 98:57319ec2bfad

tracing etc seems to work
author drewp
date Sat, 13 Jul 2002 04:26:59 +0000
parents 139d6ed2fbaa
children a995fd1a8f03
comparison
equal deleted inserted replaced
97:139d6ed2fbaa 98:57319ec2bfad
170 cbname = self._master._register(callback) 170 cbname = self._master._register(callback)
171 self._tk.call("trace", "variable", self._name, mode, cbname) 171 self._tk.call("trace", "variable", self._name, mode, cbname)
172 172
173 # we build a list of the trace callbacks (the py functrions and the tcl functionnames) 173 # we build a list of the trace callbacks (the py functrions and the tcl functionnames)
174 self.callbacklist[cbname]= mode 174 self.callbacklist[cbname]= mode
175 print "added trace:",callback,cbname 175 # print "added trace:",callback,cbname
176 176
177 return cbname 177 return cbname
178 trace=trace_variable 178 trace=trace_variable
179 def disable_traces(self): 179 def disable_traces(self):
180 for cb,mode in self.callbacklist.items(): 180 for cb,mode in self.callbacklist.items():