Placing entry widgets on a canvas in Tkinter

Mickel Grönroos mickel at csc.fi
Mon Jun 30 09:02:06 EDT 2003


> try this:
>
>     canvas.create_window(x, y, window=widget, anchor=NW)

Yep. I realized this was an alternative, just after I posted my question.
(I should learn to think first and bother other people later ...)
"create_window" does really solve my problem rather completely, it seems
so now anyway.

> an alternative solution is to implement text editing for text items;
> see
>
>     http://effbot.org/guides/editing-canvas-text-items.htm

I tried your code from this page earlier, but decided to go for a
different approach as I want the entry field to be of fixed size.

Anyway, thanks Fredrik for your help!

/Mickel

--
Mickel Grönroos, application specialist, linguistics, Research support, CSC
PL 405 (Tekniikantie 15 a D), 02101 Espoo, Finland, phone +358-9-4572237
CSC is the Finnish IT center for science, www.csc.fi






More information about the Python-list mailing list