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__':
app = App(None)
app.mainloop()
-----
in order to hide the console. But it's not working for me. When I
catch the error, the console stays open and says:
-----
invalid command name "console"
-----
When I don't catch the the error, it gives me:
-----
self.tk.call('console','hide')
_tkinter.TclError: invalid command name "console"
-----
This happens on both OS X and Windows XP. On Windows I've simply
changed the extension to .pyw and that works fine for hiding the
console. But I'd like this to run on OS X as well.
Does anyone have any suggestions?
Thanks much
Jonathan
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss