[Tutor] Displaying picture and Text Downloads

2010-11-05 Thread Patty
I just realized I did the same thing - must have hit reply to one instead of 
reply to all :}


I had a followup question for you all - and would like to know the answer to 
Alan's question about print quality - below -


Patty

- Original Message - 
From: Patty pa...@cruzio.com

To: Alan Gauld alan.ga...@btinternet.com
Sent: Thursday, November 04, 2010 11:14 AM
Subject: Re: [Tutor] Displaying picture and Text


Yes, I would like to know this, I want this function to be really modular 
and I thought of something else.  If my solution turns out to be using 
Tkinter functions only then wouldn't that mean I downloaded and am 
'import'ing the Image library for nothing?


This might mean the second addon library I download the source and 
documentation for.  So how are people keeping their customized system 
organized?  I could come up with all sorts of scenarios of losing track of 
libraries, having too many you never use, and doc you never use, etc.


Patty

- Original Message - 
From: Alan Gauld alan.ga...@btinternet.com

To: tutor@python.org
Sent: Thursday, November 04, 2010 10:39 AM
Subject: Re: [Tutor] Displaying picture and Text




Alan Gauld alan.ga...@btinternet.com wrote

fhdl = Image.open(C:\Users\StarShip\PyProgs\\bbsparkle.gif)
fhdl.show()



The Tkinter PhotoImage object can display jpg. I can't recall if
it does gifs.


Sorry I got that wrong, it can display gifs but not jpgs (despite the 
fact that jpgs are used more often for photos than gifs!) So you will 
need to convert the jpg to a gif - which might lose a lot of quality!


Anyone know of a way to get decent quality in a Tkinter image?
Is there any support in PIL itself?

Alan G.


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor






___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Displaying picture and Text Downloads

2010-11-05 Thread Alan Gauld


Patty pa...@cruzio.com wrote

I had a followup question for you all - and would like to know the 
answer to Alan's question about print quality - below -



A Google search led me to this page which seems to offer a solution
using PIL anmd a module called ImageTk:

http://codeidol.com/python/python3/A-Tkinter-Tour,-Part-1/Viewing-and-Processing-Images-with-PIL/

I've never tried it so I'll be interested to hear if it works for 
you...


Alan G., 



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor