<br><br><div class="gmail_quote">On Wed, Dec 31, 2008 at 7:21 AM, Stef Mientki <span dir="ltr"><<a href="mailto:stef.mientki@gmail.com">stef.mientki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<a href="mailto:5lvqbwl02@sneakemail.com" target="_blank">5lvqbwl02@sneakemail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I've looked around for a way to allow a python console from within<br>
a wxPython application, but have only found stuff on embedded/<br>
extending python with C/C++ or wxWidgets in C++, but not wxPython.<br>
<br>
Is this easy to do?  Can someone point me in the right direction?<br>
<br>
Also, typically when you embed a scripting language into a larger<br>
application, how do you get the console environment to share data with<br>
the larger application?<br>
<br>
For instance, if the application has some gui stuff (for example<br>
clicking on a object and dragging it around), how do you get<br>
"object.select(x,y)" to print out on the console, and vice-versa: the<br>
object gets selected if the user types "object.select(x,y)"?<br>
<br>
I'd like the console to be a bidirectional representation of what's<br>
going on in the gui, plus a general purpose evaluation environment<br>
where you can manipulate application data via some api which is<br>
automatically exposed to the console when the application opens up.<br>
<br>
I'm looking for high-level hints/strategies/directions.<br>
  <br>
</blockquote>
If you're looking for "high-level",<br>
I don't understand why you want to see what's going on in the gui,<br>
as I see the gui just a tool to control the real data.<br>
For a pretty high level data manipulation,<br>
something like PyLab_Works ?<br>
<a href="http://code.google.com/p/pylab-works/" target="_blank">http://code.google.com/p/pylab-works/</a><br>
<br>
cheers,<br>
Stef<br><font color="#888888">
<br>
--<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><div>Try checking out the wxPython demo package. There is an example of a widget inspection tool in the help menu.</div><div>This tool has an embedded python console and allows introspection of live widgets and sizers in an application.</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Jervis</div><div><br></div>