<br><br><div class="gmail_quote">On Tue, Jan 13, 2009 at 2:35 AM, Kannon <span dir="ltr"><<a href="mailto:neokannon@gmail.com">neokannon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm sure this has come up before, but my google-fu is just not strong<br>
enough to find it out of 10,000~ posts, and apologies if this is<br>
obvious.<br>
<br>
What I'd like to do is attach an interpreter to a program running from<br>
a script (I.E, not something I typed into the live interpreter). It'd<br>
be an awesome way to debug programs, as well as tweak parameters and<br>
such at runtime. Ideally, I'd like it to be something in pure python<br>
so I could throw it into Jython and IronPython as well. (Though, I can<br>
actually code Java and C#, so implementing it is something I could do<br>
myself, if needed.) I was thinking maybe something I could throw into<br>
a tkinter window or similar, but I wasn't able to find anything on how<br>
to pass stuff directly to the interpreter.<br>
<br>
Any ideas, or if this is even possible would be nice. Thanks in<br>
advance.</blockquote><div><br><br>I don't know exactly what they did, but wxPython has a "widget inspection tool" that includes such a thing. It lets you manipulate whatever widget is selected in the tree control above the shell. The widget inspection tool is in wx/lib/inspection.py and the code for the shell they use is in wx/py/shell.py. I think it's pure python except for the gui.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>