PIL\Tkinter and Transparencies, Rubber Lines, and Dragging Image Objects

W. eWatson notvalid2 at sbcglobal.net
Tue Apr 7 09:56:00 EDT 2009


You got it. That lamda did look a little odd. The white background is opaque 
and the telescope is seen as green. The program will ask for a file. I 
didn't write the code.

Eric Brunel wrote:
> W. eWatson wrote:
>> Basically, I'd like to know how one (broadly, e.g., references in Win-land)
>> does IP (image processing) and drawing techniques such as rubber lines, and
>> dragging image objects across the canvas. I know there are some pretty
>> powerful toolkits out there, but I'd like to limit this to PIL and Tkinter.
>> If it can't be done with them, then I'll consider other possibilities.  As a
>> starter, on the topic of transparencies, consider this program that I pulled
>> off the web and was posted in 1999. It purports to illustrate how one might
>> produce a transparency.
> 
> OK, maybe I'm dumb but:
> 
>>     #!/usr/bin/python
>>     # see http://mail.python.org/pipermail/python-list/1999-May/003388.html
>>     from Tkinter import *
>>     import Image, ImageTk
...
> HTH
>  - Eric -


-- 
                                W. eWatson

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                     Web Page: <www.speckledwithstars.net/>




More information about the Python-list mailing list