[Pythonmac-SIG] Sending stdout/err to a text console in a py2app App

Ronald Oussoren ronaldoussoren at mac.com
Tue Oct 12 20:38:48 CEST 2010


On 12 Oct, 2010, at 20:20, Gregory Jefferis wrote:

> Hi Ronald,
> 
> Thank you very much for the reply.
> 
> On 2010-10-12 19:00, "Ronald Oussoren" <ronaldoussoren at mac.com> wrote:
> 
>> 
>> On 7 Oct, 2010, at 1:14, Gregory Jefferis wrote:
>> 
>>> [snip]
>>> Is there anyway I can send anything useful to that empty console windows
>>> that appears when I start the py2app ?  Or a simple way to make a new
>>> console to which I can print.
>> 
>> There is no built-in way to do this. The easiest workaround is to grab the
>> output of the script yourself (which is easy when using the subprocess module)
>> and display that using an easygui text widget.
> 
> The process takes a _long_ time to run.  So I need to have a textbox that
> can be updated.  Can I do this with the easygui textbox?

Hmm. I assumed that easygui was a real GUI toolkit, but it isn't. It tries to mimic a command-line interface using GUI widgets and doesn't allow you to update window contents.

Never mind...

Ronald
> 
> All the best,
> 
> Greg.
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101012/2dd0e73c/attachment.bin>


More information about the Pythonmac-SIG mailing list