wxPython: Terminal Output -> Scrollable Panel?
flamesrock
flamesrock at gmail.com
Sat Jul 2 15:52:12 EDT 2005
Thanks much for your response.
I looked at PyCrust, and while its given me a few cool ideas, I may
have described the problem incorrectly. What I really need is not
something that takes input, but merely redirects the 'print' statements
to something like a terminal window.
Is this even possible without entering the function calls directly into
a pycrust like terminal? Maybe I'm trying to do the wrong thing.
Thanks
Peter Hansen wrote:
> flamesrock wrote:
> > I want to make it so that clicking on a button that performs an
> > operation will output it to the scrollable wxpython terminal panel, and
> > (if possible) save that output as text (or maybe into a logfile).
>
> The example code includes something called "PyCrust" which does pretty
> much this. (The logging part is fairly trivial, so I won't mention it.)
> I'm sure you could look in the source to learn more. You can start by
> running the demo, and finding that particular one, playing with it a
> bit, and then seeing how the demo code invokes PyCrust. Then find the
> source for PyCrust in the wxPython folder (under your lib/site-packages
> folder in c:\python24) and start reading.
>
> -Peter
More information about the Python-list
mailing list