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

2007-06-25 Thread Mohammad Tayseer
You have to call mainloop for any window to appear. I cannot remember the exact reason for this, but it was posted before on the mailing list Fabrizio Pollastri <[EMAIL PROTECTED]> wrote: Mohammad Tayseer wrote: > Finishing the program will close it, which will destroy the Tk object. > You have

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