| | |
GIFs in a Dict
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
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
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
Take a look at:
http://www.daniweb.com/techtalkforum...257347-78.html
that Tkinter cardgame example uses a card_name:image_object dictionary.
http://www.daniweb.com/techtalkforum...257347-78.html
that Tkinter cardgame example uses a card_name:image_object dictionary.
May 'the Google' be with you!
![]() |
Similar Threads
- i can't see gifs in my browser (Web Browsers)
- Refreshing a Tkinter Canvas Multiple Times: (Python)
- Re: Starting Python (Python)
- Motorola T720 Phone and Verizon Wireless (Cellphones, PDAs and Handheld Devices)
- animated gifs don't display (Web Browsers)
- Something wrong with windows XP (Windows NT / 2000 / XP)
- Where to find screensavers 4 MotorolaT720? (Geeks' Lounge)
Other Threads in the Python Forum
- Previous Thread: Best GUI toolkit?
- Next Thread: help with converting a python programto java in eclipsed IDE
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied apache application argv array beginner book change code color converter dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook port prime programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse scrolledtext server session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython






