George;
I haven't install python 3.1, and as far as I knew, 3.1 was a little bit different than 2.7 with respect to ttk, or maybe is python 3.2. By the way, why you're installing 3.1 instead of 3.2? You know, 3.2 is the latest version, maybe installing this version is easier, but any way, this is what I did to make 2.7 work with ttk: 1. download the source code and not the installer package 2. uncompress the file--the computer does this automatically for you 3. go where the package was uncompress using the terminal--oper a terminal, and type: ls ~/Downloads/python..., instead of the points write the name of the folder that was created when you uncompress the file you download 4. type the following commands one at a time and press enter for each command: ./configure --enable-universalsdk --enable-framework make make frameworkinstall After this Python should be already install in your computer, and you should be able to use ttk. Remember that to import ttk on version 3.x you should do: import tkinter.ttk I'm in the process of writing a tutorial of Python, maybe it can help you, this is the link: Regards! Guido On Jul 15, 2011, at 7:00 AM, [hidden email] wrote: Send Tkinter-discuss mailing list submissions to _______________________________________________ Tkinter-discuss mailing list [hidden email] http://mail.python.org/mailman/listinfo/tkinter-discuss |
In article <[hidden email]>,
Guido Carballo-Guerrero <[hidden email]> wrote: > I haven't install python 3.1, and as far as I knew, 3.1 was a little bit > different than 2.7 with respect to ttk, or maybe is python 3.2. By the way, > why you're installing 3.1 instead of 3.2? You know, 3.2 is the latest > version, maybe installing this version is easier, but any way, this is what I > did to make 2.7 work with ttk: > > 1. download the source code and not the installer package > 2. uncompress the file--the computer does this automatically for you > 3. go where the package was uncompress using the terminal--oper a terminal, > and type: ls ~/Downloads/python..., instead of the points write the name of > the folder that was created when you uncompress the file you download > 4. type the following commands one at a time and press enter for each > command: > > ./configure --enable-universalsdk --enable-framework > make > make frameworkinstall > > After this Python should be already install in your computer, and you should > be able to use ttk. Remember that to import ttk on version 3.x you should do: > import tkinter.ttk There is no need to build Python from source to use ttk on current Mac OS X systems. Just download the python.org 64-/32- bit installers for Python 2.7 or 3.2 and ActiveState Tcl/Tk 8.5. More details here: http://www.python.org/download/mac/tcltk/ -- Ned Deily, [hidden email] _______________________________________________ Tkinter-discuss mailing list [hidden email] http://mail.python.org/mailman/listinfo/tkinter-discuss |
Free forum by Nabble | Edit this page |