py2app console

Dave Opstad dave.opstad at monotypeimaging.com
Tue Oct 3 10:16:38 EDT 2006


In article <P9sUg.1250$NE6.423 at newssvr11.news.prodigy.com>,
 James Stroud <jstroud at mbi.ucla.edu> wrote:

> Does anyone know of the most straightforward way to get rid of the 
> intensely annoying "console" window that py2app feels so compelled to 
> create?

I include this code in my apps:

    if (sys.platform != "win32") and hasattr(sys, 'frozen'):
        root.tk.call('console', 'hide')

That hides the console in py2app applications.

Dave



More information about the Python-list mailing list