Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36201 > unrolled thread

Re: import of ttk

Started byVerde Denim <tdldev@gmail.com>
First post2013-01-05 14:21 -0500
Last post2013-01-05 14:21 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: import of ttk Verde Denim <tdldev@gmail.com> - 2013-01-05 14:21 -0500

#36201 — Re: import of ttk

FromVerde Denim <tdldev@gmail.com>
Date2013-01-05 14:21 -0500
SubjectRe: import of ttk
Message-ID<mailman.138.1357413681.2939.python-list@python.org>
On 01/04/2013 11:39 PM, Terry Reedy wrote:
> On 1/4/2013 11:02 PM, Verde Denim wrote:
>> In reading through one of the learning articles, I have a bit of code
>> that imports ttk, but I apparently don't have this installed. I've
>> looked up the svn checkout for python-tk, and have checked it out
>> (read-only), but still get the same error. I'm running 2.6.6 python, if
>> that helps.
> 
> Show the line of code that did not work and the traceback. What system
> are you running on and what tcl/tk installation does it have? ttk is
> included with any 8.5 installation. tile is often included with 8.4
> installations and should be picked up as well.
> 
>  The article I'm looking at is here -
>> http://www.zetcode.com/gui/tkinter/introduction/
> 
> 
The line is -
16 from ttk import Frame, Button, Style

$ python tkinter_tut1.py
Traceback (most recent call last):
  File "tkinter_tut1.py", line 16, in <module>
    from ttk import Frame, Button, Style
ImportError: No module named ttk

I'm running on Debian Squeeze, and do show both 8.4 and 8.5 of tcl

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web