[Tkinter-discuss] Temporary disabling TCL execution

2007-07-05 Thread Fabrizio Pollastri
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 *

Re: [Tkinter-discuss] different results from the same tcl script

2007-06-25 Thread Fabrizio Pollastri
Mohammad Tayseer wrote: > Finishing the program will close it, which will destroy the Tk object. > You have to call mainloop() at the end to stop the program from >closing The program waits for 3 seconds before finishing, so I must see the expected window for the same time, but this do not happ

[Tkinter-discuss] different results from the same tcl script

2007-06-25 Thread Fabrizio Pollastri
Hello, in mixed python-tcl programming I found the following different behaviours of the same tcl script. If I type manually in the python interpreter the following lines >>> from Tkinter import * >>> w = Tk() >>> w.tk.evalfile('my_tcl_script.tcl') where my_tcl_script.tcl is #!/bin/sh

[Tkinter-discuss] visualtcl as ui designer for tkinter

2007-06-08 Thread Fabrizio Pollastri
Hello, I am trying to use VisualTcl as an interface designer. The tcl file produced by VisualTcl is executed in my application as root = Tk() root.tk.evalfile('my_tcl_gui.tcl') I have found two problems. First, the toplevel "root" supersede the toplevel options defined in the tcl file (typical

[Tkinter-discuss] python tcl mixed programming

2007-05-21 Thread Fabrizio Pollastri
Hello, I am trying to import into a python program a TK gui designed with TkproE. My code is root = Tk() root.tk.evalfile('my_tcl_gui.tcl') The problem at this point is that root.children is empty. It seems that evalfile created the gui widgets somewhere else, not inside my root window. How I