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
;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]&
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...
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]&
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
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__':