[Tkinter-discuss] Temporary disabling TCL execution
Fabrizio Pollastri
pollastri at iriti.cnr.it
Thu Jul 5 17:29:02 CEST 2007
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.
More information about the Tkinter-discuss
mailing list