Jonathan Frankel wrote:
> Hi all,
>
> I've written a little app that looks quite handsome on OS X, much more
> than on Windows, but when I double click on it to open it (and the
> default is to launch using Python Launcher), a console appears in the
> background, and then even stays open after I close the Tkinter window.
> On Windows I changed the extension to .pyw and it works fine--no
> command prompt in the background.
>
> How do I run a Tkinter application on OS X without having a console
> window appear in the background?
>
> Thanks much,
> Jonathan
Something like this works for me:
try:
self.tk.call('console', 'hide')
except TclError:
pass
HTH,
Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss