public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] python + Tkinter ?
@ 2001-09-15  9:40 Collins Richey
  2001-09-15 11:20 ` Tod M. Neidt
  0 siblings, 1 reply; 2+ messages in thread
From: Collins Richey @ 2001-09-15  9:40 UTC (permalink / raw
  To: gentoo

How does one get python to work with Tkinter classes?

I have both python and tcl-tk installed, and I find Tkinter stuff in
the python libraries, but I get the following when I try to run a
Tkinter program.

 File "./app1.py", line 2, in ?
    from Tkinter import *
  File "/usr/lib/python2.0/lib-tk/Tkinter.py", line 35, in ?
    import _tkinter # If this fails your Python may not be configured
for Tk

Obviously I'm missing something.

-- 
Collins Richey
Denver Area
gentoo_rc6 xfce+sylpheed



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] python + Tkinter ?
  2001-09-15  9:40 [gentoo-dev] python + Tkinter ? Collins Richey
@ 2001-09-15 11:20 ` Tod M. Neidt
  0 siblings, 0 replies; 2+ messages in thread
From: Tod M. Neidt @ 2001-09-15 11:20 UTC (permalink / raw
  To: gentoo-dev

Did you build python with "tcltk" set in your USE variable?

tod

On Sat, 2001-09-15 at 15:51, Collins Richey wrote:
> How does one get python to work with Tkinter classes?
> 
> I have both python and tcl-tk installed, and I find Tkinter stuff in
> the python libraries, but I get the following when I try to run a
> Tkinter program.
> 
>  File "./app1.py", line 2, in ?
>     from Tkinter import *
>   File "/usr/lib/python2.0/lib-tk/Tkinter.py", line 35, in ?
>     import _tkinter # If this fails your Python may not be configured
> for Tk
> 
> Obviously I'm missing something.
> 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-15 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-15  9:40 [gentoo-dev] python + Tkinter ? Collins Richey
2001-09-15 11:20 ` Tod M. Neidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox