[Tkinter-discuss] redirecting Python stdout/stderr to a Tkinter text widget from an embedded Python application
Fredrik Lundh
fredrik at pythonware.com
Wed Jan 2 18:56:49 CET 2008
Bernard B Yoo wrote:
> I have a Python module that redirects stdout/stderr to a Tkinter text
> widget. When I run this from the Python interpreter, it behaves as I
> expect. When I run it from a Python batch file, it also behaves as
> expected.
>
> When I embed the module in a C program, the Tkinter text widget does not
> appear.
>
> Is there something special I must do in embedded Python programs to make
> Tkinter widgets appear?
you must keep the mainloop running, so that Tk(inter) gets around to
process the events.
can you perhaps provide some more details on how you're doing the
redirecting and the embedding?
</F>
More information about the Tkinter-discuss
mailing list