[Tutor] Can we add labels to tkinter canvas..?

Michael Lange klappnase at freenet.de
Mon Jan 22 20:23:56 CET 2007

On Mon, 22 Jan 2007 17:47:14 -0000
"Alan Gauld" <alan.gauld at btinternet.com> wrote:

> "Asrarahmed Kadri" <ajkadri at googlemail.com> wrote in message 
> news:b4e894c70701220538n435c9d90je6194e0efc30d338 at mail.gmail.com...
> > Hello Folks,
> >
> > Is it possible to add a Label to tkinter canvas or i'll need to use
> > create_text method ?
> What exactly do you expect a label in a canvas to do?
> Or to look like?
> You can attach a label to a canvas externally by wrapping them
> in a single Frame, does that do what you want? Othewise just
> putting a bit of text onto the canvas itself seems the best bet.
> What would the lavbel do for you that a bit of text wouldn't?

Or put a label (or any other widget) onto the canvas using the create_window()
method (though I don't know what's the benefit of a label over some text or image).


More information about the Tutor mailing list