Seite 1 von 1

Text drehen

Verfasst: Montag 27. Oktober 2003, 21:41
von jocsch
Hallo Alle!
Kennt jemand eine Möglichkeit, CanvasText gedreht darzustellen?

Ähnlich wie in diesem Fantasiecodeschnipsel, dass natürlich nicht geht, weils die Option -rotate nicht gibt:

Code: Alles auswählen

t = Canvastext(parent, x, y, t='hallo', anchor='nw',..., rotate=45)
Dank mal wieder im voraus!!!

Verfasst: Montag 27. Oktober 2003, 21:52
von Dookie
Hi jocsch,

geht über PIL, also zuerst den Inhalt des Canvas in ein Image umwandeln und dann rotieren und in das Canvas zurückschreiben.


Gruß

Dookie