tkinter canvas

kyosohma at gmail.com kyosohma at gmail.com
Wed Apr 18 17:30:38 EDT 2007


On Apr 18, 3:43 pm, Gigs_ <g... at hi.t-com.hr> wrote:
> how to write text on canvas. i know that i need to use canvas.create_text, but
> how to write text than when i create_text?
> or how to access object ID in canvas and change some options?
>
> thanks in advance!

All you need to do is canvas.create_text(x, y, text='Hello World')
where x and y are coordinates on the canvas. You can also add fg and/
or bg to set foreground and background colors, respectively.

Mike




More information about the Python-list mailing list