By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

py2app console

P: n/a
Hello,

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

On a related but less important note, why would anyone want that stupid
window in the first place?

James
Oct 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
James Stroud wrote:
Hello,

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

On a related but less important note, why would anyone want that stupid
window in the first place?

James
I should mention that this is the ridiculously pointless Tcl shell
created when deploying a TkAqua application with py2app. Surely there
has to be a better place to practice one's Tcl programming than from the
console window of a bundled application that would otherwise be fit for
end-users--except for the stupid Tcl console that no one will bother to
use but is just frickin' desktop clutter.

## This is not the stdout console of the shell terminal, etc. ##

James
Oct 3 '06 #2

P: n/a
In article <P9****************@newssvr11.news.prodigy.com>,
James Stroud <js*****@mbi.ucla.eduwrote:
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
Oct 3 '06 #3

P: n/a
Dave Opstad wrote:
In article <P9****************@newssvr11.news.prodigy.com>,
James Stroud <js*****@mbi.ucla.eduwrote:
>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
Oct 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.