[Pythonmac-SIG] tkinter, py2app, and the console

Bob Ippolito bob at redivi.com
Mon Nov 21 00:27:37 CET 2005


On Nov 20, 2005, at 2:47 PM, Jon Rosebaugh wrote:

> On 11/20/05, Brian Lenihan <brian_l at mac.com> wrote:
>> I'm not sure really why this happens.  I work around it using  
>> something
>> like this in the initialization code:
>>
>> if hasattr(sys, 'frozen'):
>>          app.top.tk.call('console', 'hide')
>
> Thanks, that worked wonderfully.

I think this functionality lives in AquaTclTk itself in order to  
facilitate Wish.  There's probably an environment variable or plist  
setting to turn it off somewhere, but you'd have to ask the Tk folks  
or read the source.  Definitely not anywhere near Python land, either  
way.

-bob



More information about the Pythonmac-SIG mailing list