[Tkinter-discuss] Tkinter hangs in interpreter subprocess

nadeemabdulhamid nadeem at acm.org
Tue May 22 05:44:45 CEST 2007



I am having real problems using Tkinter when launching a Python interpreter
as a subprocess from another program in Windows. Tkinter seems to hang when
the interpreter is not launched from the console, for some reason. I need to
find a way around it, or somehow get it to think that it is being launched
from a console.

Basically, I'm trying to write a simple Python editor in Java and would like
to be able to run an interactive interpreter shell in a pane within the
editor. So I tried launching python from Java, and it works fine except when
I import Tkinter and then create the root Tk() object, it stops accepting
any further input. I've also tried launching the interpreter process from a
Python script using popen and piping the input/output streams, and also from
a native C application -- and in every case it does the same. However, the
Java/Python code works just perfectly on a Macintosh -- it loads the Tkinter
library and does not hang or anything. 

The Java code is posted in another thread:
http://tinyurl.com/2h2dwx
I'm using the latest versions of Java and Python on Windows XP.

I would really appreciate if anyone has any ideas on how I can solve this
problem, or another more appropriate forum to ask the question.

Thanks in advance,

nadeem


-- 
View this message in context: http://www.nabble.com/Tkinter-hangs-in-interpreter-subprocess-tf3794092.html#a10731091
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list