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.

sharky_machine

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.