[Tutor] How Do I enable TKinter

Kalle Svensson kalle@gnupung.net
Sun, 6 May 2001 19:06:58 +0200


Sez Tim Johnson:
> ImportError: No module named _tkinter
> It appears to this 'ol c-dog that I haven't compiled in the tkinter module.
> 
> If this is the problem, what config switch should I be using? 
> <duh>I can't seem to find any reference to tkinter in configure....</duh>

No wonder, there is none...  The Python 2.0 build process is IMHO slightly
less than optimal.  This is a lot better in 2.1, though.
Anyway, what you want is the Modules/Setup file.
Run configure, then copy Modules/Setup.in (or Modules/Setup.dist?  use the one
that exists. :) to Modules/Setup and edit it.  Then make and make install,
as usual.
All this is IIRC, it's been a while since I compiled 2.0.

Peace,
  Kalle
-- 
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
 [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]