[Tkinter-discuss] displaying images with Label()
Guilherme Polo
ggpolo at gmail.com
Fri Jun 13 22:39:02 CEST 2008
On Fri, Jun 13, 2008 at 5:27 PM, Alexnb <alexnbryan at gmail.com> wrote:
>
> I have looked online for examples and documentation but can't find anything.
> Not to say that there isn't but I can't find it. Anyway I am wondering how
> you display images using the Label() function. I tried something like this
> but it didn't work
>
> Label(parent, image="/path/path/image.png")
>
> can someone show me an example or point me in the right direction? I would
> really appreciate it.
You have to specify compound="left", to specify that the image will be
placed at left, and then bitmap=image. This image has to be created
earlier, using (probably) the PhotoImage class.
> --
> View this message in context: http://www.nabble.com/displaying-images-with-Label%28%29-tp17831398p17831398.html
> Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
--
-- Guilherme H. Polo Goncalves
More information about the Tkinter-discuss
mailing list