Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: import of ttk (http://www.velocityreviews.com/forums/t956174-re-import-of-ttk.html)

Verde Denim 01-05-2013 07:21 PM

Re: import of ttk
 
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


All times are GMT. The time now is 05:04 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57