Hello, I am trying to disable temporary TCL execution during the instantiation of Tkinter classes. The scope is to build the Tkinter python structure of a Tk widget tree already generated by direct TCL commands. I tried a "monkey patch" on the call method of tkapp as follow
from Tkinter import * def dummy_tk_call(*args): return root = Tk() original_call = root.tk.call root.tk.call = dummy_tk_call # disable TCL execution # put here code needing no TCL execution root.tk.call = original_call # enable TCL execution ... The problem is that root.tk.call is a read only attribute. Any solution is welcome. Cheers, F. Pollastri. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss