images in tkinter

E

Elaine Jackson

Hi! I'm working on a script that displays images on Tkinter buttons, and I'd
like to be able to do the following things:

1) Ensure that a button, whose 'image' attribute changes during execution of the
script, stays the same size, but does not crop images that are larger than a
predefined 'height' and 'width'.

2) Get the respective names and file-types of all of the image files in a given
directory. (What I'm doing provisionally is reading the names out of a text file
written specifically for that purpose, and so far they're all gif's, but I'd
like to have more flexibility than that.)

Any help will be greatly appreciated.

Peace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,635
Latest member
SkyePurves

Latest Threads

Top