Is it possible to use files such as GIF files as a value in a Python Dict; that is, is it possible to use GIF files in a Dict and access them directly, rendering them to the screen via Tkinter.

I have a group of GIF files I plan to use in a GUI-based Python program. I will need to access these GIFs based on the results of a RNG. At this point, using a dict seems the most promising considering the use of the "key", but I am not sure.

What is the best way in Python to group image files into a group, an array of images to possibly use within a program?

Regards, and TY in advance.


11 Years
Discussion Span
Last Post by vegaseat
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.