Tkinter, Images on buttons question???

G. Willoughby thecalm at NOSPAM.btinternet.com
Tue Aug 7 13:47:06 EDT 2001


Hi,
    I was wondering has anybody had any experience putting an image onto a
Tkinter button. the manual says:

[snip]
image=<image>    The image to display in the widget. If specified, this
takes precedence over the text and bitmap options.
[snip]

is this a string? or some other format i'm missing. i try this:

Button(frame, image="D:\\Backup\\Python
Programs\\Shrubbery\\images\\Image.gif")

but it complains the image can not be found, any ideas???

G. Willoughby





More information about the Python-list mailing list