[Tkinter-discuss] Opening a .py that uses Tkinter on OS X pops open a console window

2008-03-18 Thread Jonathan Frankel
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

Re: [Tkinter-discuss] Opening a .py that uses Tkinter on OS X pops open a console window

2008-03-18 Thread Jonathan Frankel
;console','hide') except TclError: pass app = App(root) root.mainloop() Should I put "self.tk.call('console','hide')" somewhere else in the code? Humbly, Jonathan On Tue, Mar 18, 2008 at 11:23 AM, Kevin Walzer <[EMAIL PROTECTED]&

Re: [Tkinter-discuss] Opening a .py that uses Tkinter on OS X pops open a console window

2008-03-18 Thread Jonathan Frankel
When I put this code (using self.tk... instead of root.tk...) in the __init__ method I get an error: AttributeError: App instance has no attribute 'tk' On Tue, Mar 18, 2008 at 11:51 AM, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Jonathan Frankel wrote: > > Hmm...

Re: [Tkinter-discuss] Opening a .py that uses Tkinter on OS X pops open a console window

2008-03-18 Thread Jonathan Frankel
e, baseName, className, interactive, wantobjects, useTk, sync, use) TypeError: create() argument 1 must be string or None, not instance Is this related to how I'm instantiating my App object (app=App(root)) in the first place? On Tue, Mar 18, 2008 at 12:22 PM, Kevin Walzer <[EMAIL PROTECTED]&

Re: [Tkinter-discuss] Opening a .py that uses Tkinter on OS X pops open a console window

2008-03-18 Thread Jonathan Frankel
nyone know about tk.call? On Tue, Mar 18, 2008 at 2:38 PM, Kevin Walzer <[EMAIL PROTECTED]> wrote: > Jonathan Frankel wrote: > > I'm on 10.4.11, and I just updated python to the most recent version, > > with the Tkinter that came with it. > > > > When

[Tkinter-discuss] Trying to hide console on Mac OS X

2008-03-19 Thread Jonathan Frankel
As per someone's suggestion, I'm using this code: - from Tkinter import * class App(Tk): def __init__(self, parent): Tk.__init__(self, parent) try: self.tk.call('console','hide') except TclError, msg: print msg if __name__ == '__main__':