[Tkinter-discuss] How can I install or find ttk

Igor Novikov igor.e.novikov at gmail.com
Tue Apr 20 19:53:26 CEST 2010


hmmm... ttk.py is a part of Python 2.6.2 (located in the same folder as
Tkinter:  %Python%\Lib\lib-tk\)

Regards,

Igor Novikov
sK1 Project
http://sk1project.org

On Tue, Apr 20, 2010 at 8:38 PM, Wayne Werner <waynejwerner at gmail.com>wrote:

> On Tue, Apr 20, 2010 at 9:31 AM, Guido Carballo-Guerrero <charras at me.com>wrote:
>
>> Hello, I want to use Treeview, and apparently this is part of ttk. I have
>> Python 2.6.5 install in my computer, which is running Windows XP. The
>> problem I have is that Python can't find ttk. When I do:
>>
>> >>> from Tkinter import ttk
>>
>> Traceback (most recent call last):
>>  File "<pyshell#11>", line 1, in <module>
>>    from Tkinter import ttk
>> ImportError: cannot import name ttk
>>
>> I get the previous error. Can anybody tell me what is wrong? Or how can I
>> use treeview. Maybe, somebody can even give me another option, instead of
>> treeview, 'cause what I need is just display tables, but for what I have
>> seen so far, treeview gives the better look option.
>>
>
> From a quick google search it appears that ttk is only installed by default
> with  >= Python 3.1
>
> Not sure what other options are out there, though.
>
> -Wayne
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20100420/ff29b62b/attachment.html>


More information about the Tkinter-discuss mailing list