[Tkinter-discuss] from where can I download and install ttk?

Michael Lange klappnase at web.de
Wed Apr 21 09:34:11 CEST 2010


Hi,

On Tue, 20 Apr 2010 14:41:11 -0700
Guido Carballo-Guerrero <charras at me.com> wrote:

> Hello, I have install in my computer Python 2.6.5, but I just realize
> that Tkinter for this version don't have ttk install. Does anybody
> know from where can I download ttk to install it.
> 

ttk is in a separate python module, I am not sure if this is already
included in your version. You can try this with an "import ttk"
statement, if this fails you can download the ttk module from here:
< http://pypi.python.org/pypi/pyttk > and, after you installed it, you
should be able to do something like:

    from Tkinter import *
    import ttk
    root = Tk()
    tree = ttk.Treeview(root)

I hope this helps

Michael



More information about the Tkinter-discuss mailing list