Newbie question

Alan Gauld alan.gauld at btinternet.com
Mon Feb 28 16:52:09 EST 2005


On Mon, 28 Feb 2005 16:17:03 +0200, "Ryan White"
<greenmonkey at foo.com> wrote:

> How do I display an image in Python? - I've run over Tkinter, but obviously
> in all the wrong places.

Someone else suggested PIL.

But in Tkinter you create a PhotoImage object then insert it into
either a Canvas or a Text widget.

> Any help or sample code would be much appreciated.

If you find the file hmgui.zip on Useless Python you will find
the code for my games framework with an example Hangman game in
Tkinter. It includes the display of a set of images(the hanged
man)

HTH,

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Python-list mailing list