Canvas text - clipping instead of wrapping

Horst Gassner horst at proceryon.at
Thu Jul 20 03:51:44 EDT 2000


Hello Richard,

> text.config(wrap=NONE)
> 
> The options are NONE,WORD or CHAR.
Thank you for your fast reply.
I tried this but I got the following error:

    s._parent.itemconfigure(textID, wrap=NONE)
  File "<string>", line 1, in itemconfigure
    None
  File "/usr/lib/python1.5/lib-tk/Tkinter.py", line 1541, in
itemconfigure
    cnf = {}
TclError: unknown option "-wrap"

This is my code:
textID=s._parent.create_text(x, y, width=tableCellWidth, text='%s' %
(str(col)), anchor=NW)
s._parent.itemconfigure(textID, wrap=NONE)


Horst



More information about the Python-list mailing list