py2app console

James Stroud jstroud at mbi.ucla.edu
Wed Oct 4 06:01:19 EDT 2006


Dave Opstad wrote:
> 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

Yes! Thank you! I just now have gotten a chance to try it. It works 
beautifully and simply.

Again, many thanks for your help!

James



More information about the Python-list mailing list