Re: Tkinter and OS X 10.3?

From: Michael Hudson (mwh_at_python.net)
Date: 01/06/04


Date: Tue, 6 Jan 2004 12:29:44 GMT

aahz@pythoncraft.com (Aahz) writes:

> In article <btcbrv$fl4$1@nntp6.u.washington.edu>,
> Russell E. Owen <no@spam.invalid> wrote:
> >
> >You are almost certainly typing python instead of pythonw at the
> >terminal prompt. This results in exactly the error described. (I'm not
> >sure why there are two commands instead of python doing whatever extra
> >magic pythonw does.)
>
> I'd guess that pythonw imports more stuff; if you want to run a non-GUI
> application (say in a cron job), that would be wasteful.

pythonw connects to the window server. If there is no window server
(logged in in text mode or via ssh) this could be considered a
disadvantage. I don't know if it's possible to try to connect and do
something sensible if it fails, but given the separatedness of python
& pythonw, I'd guess not.

Cheers,
mwh

-- 
  If I had wanted your website to make noise I would have licked
  my finger and rubbed it across the monitor.
                           -- signature of "istartedi" on slashdot.org