<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.6036" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV>Hi Alan - </DIV>
<DIV> </DIV>
<DIV>I tried using ImageTk from the PIL library to display jpegs (and hopefully
any picture type) instead of just gif as you suggested below. I read
online that these these types of programs should
<DIV>be run from executables not in the interpreter but it crashes and I can't
read the error. Here is the program:</DIV>
<DIV> </DIV>
<DIV>import Image<BR>import ImageTk</DIV>
<DIV> </DIV>
<DIV>fhdl =
Image.open("C:\Users\StarShip\PyProgs\SuitGirl.jpg")<BR>ImageTk.PhotoImage(fhdl)</DIV>
<DIV> </DIV>
<DIV>Tested in interpreter and get the following error. I included
Image.show() to be <BR>sure pic could be displayed and it did come up
in HP Photo Viewer just like the gif file did</DIV>
<DIV>and I tried the PhotoImage() after I got the cursor back</DIV>
<DIV> </DIV>
<DIV>Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
(Intel)] on<BR>win32<BR>Type "help", "copyright", "credits" or "license" for
more information.<BR>>>> import Image<BR>>>> import
ImageTk<BR>>>> fhdl =
Image.open("C:\Users\StarShip\PyProgs\SuitGirl.jpg")<BR>>>>
fhdl.show()<BR>>>> ImageTk.PhotoImage(fhdl)<BR>Traceback (most recent
call last):<BR> File "<stdin>", line 1, in <module><BR>
File "C:\Python26\lib\site-packages\PIL\ImageTk.py", line 113, in
__init__<BR> self.__photo = apply(Tkinter.PhotoImage, (),
kw)<BR> File "C:\Python26\lib\lib-tk\Tkinter.py", line 3285, in
__init__<BR> Image.__init__(self, 'photo', name, cnf, master,
**kw)<BR> File "C:\Python26\lib\lib-tk\Tkinter.py", line 3226, in
__init__<BR> raise RuntimeError, 'Too early to create
image'<BR>RuntimeError: Too early to create
image<BR>>>></DIV><BR>>> <BR>></DIV>
<DIV>"Alan Gauld" <<A
href="mailto:alan.gauld@btinternet.com">alan.gauld@btinternet.com</A>> wrote
in message <A
href="news:ib270l$p30$1@dough.gmane.org">news:ib270l$p30$1@dough.gmane.org</A>...</DIV>>
<BR>> "Patty" <<A href="mailto:patty@cruzio.com">patty@cruzio.com</A>>
wrote<BR>> <BR>>> I had a followup question for you all - and would
like to know the <BR>>> answer to Alan's question about print quality -
below -<BR>> <BR>> <BR>> A Google search led me to this page which
seems to offer a solution<BR>> using PIL anmd a module called
ImageTk:<BR>> <BR>> <A
href="http://codeidol.com/python/python3/A-Tkinter-Tour,-Part-1/Viewing-and-Processing-Images-with-PIL/">http://codeidol.com/python/python3/A-Tkinter-Tour,-Part-1/Viewing-and-Processing-Images-with-PIL/</A><BR>>
<BR>> I've never tried it so I'll be interested to hear if it works for
<BR>> you...<BR>> <BR>> Alan G., <BR>>
<BR></FONT></DIV></BODY></HTML>