like py2exe, but on a mac

Kevin Walzer kw at codebykevin.com
Mon Jul 28 15:18:43 EDT 2008


William McBrine wrote:
> On Mon, 28 Jul 2008 19:51:26 +0200, Tommy Nordgren wrote:
> 
>> There is Platypus, a general open source program to wrap a script
>> in an Macintosh (GUI) Application.
> 
> Thanks. I tried Platypus, and it's close to what I want. But I still 
> can't seem to get rid of the small "Console" window that pops up behind 
> my Tkinter app.
> 

That's not something that py2app can solve.

Add this call to your Python script somewhere (modify as needed):

    try:
             self.tk.call('console', 'hide')
         except TclError:
             pass

HTH,
Kevin

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com



More information about the Python-list mailing list