How to Write words Vertically?
Jose' Sebrosa
sebrosa at artenumerica.com
Wed Apr 18 21:08:20 EDT 2001
XiaoQin Xia wrote:
>
> I am using Tk to draw 2-D charts. But I do not know how to write text
> vertically on canvas. Would you please show me how to do it?
>
> Many Thanks from
> XiaoQin (xq.xia at ccsr.cam.ac.uk)
I think you can have multiline text in Label when you insert the charater '\n'.
Try
Label(text = 'something')
for horizontal labels and
Label(text = string.join('something', '\n'))
for vertical labels.
You can also play with "justify" to have the letters properly placed, like in
Label(text = string.join('something', '\n'), justify = CENTER)
Sebrosa
More information about the Python-list
mailing list