<font class="Apple-style-span" face="Verdana, Arial, Helvetica"><div>Hi, </div><div><br></div><div>In Windows, I made an interactive window by C#, which creates a remote python </div><div>subprocess  to do the interpreting. Communication is done via standard IO redirection. </div>
<div>The idea is that the python session is an actual process separate from the GUI, </div><div>which has some advantages, like I can have multiple such shells in my application, </div><div>and I can kill them without worrying that my C# app will crash. </div>
<div><br></div><div><br></div><div>This all works really, I will also launch C# apps. So I was quite happy, untill I tried </div><div>doing some plotting with Tkinter. The problem is that the process </div><div>becomes unresponsive when I do something(more details below) </div>
<div><br></div><div>I don&#39;t know much about creating subprocess and redirecting standard IO of </div><div>subprocess and how they are different from a normal process. So can anyone </div><div>offer some help as to what the problem might be? </div>
<div><br></div><div>Thanks in advance, </div><div>Kaster</div><div><br></div><div>To get to the details: </div><div>I use a textbox component of C# to receive the command and then run it as </div><div>a normal Python console</div>
<div>- When I start  with command &quot;import Tkinter&quot;</div><div>-work well,and then command &quot;r = Tkinter.Tk()&quot;</div><div>problem is arose, a small window pops up, and then whichever command I </div><div>run in the textbox is not working.</div>
<div><br></div><div>I think may be something block the input so that the command cannot transfer to</div><div>the subprocess of python, but I don&#39;t know how to resolve the problem.</div></font>