Generating a spacer gif on the fly

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Wed Oct 9 07:33:13 EDT 2002


On Wednesday 09 Oct 2002 11:21 am, Martin Franklin wrote:
> On Wednesday 09 Oct 2002 10:50 am, Martin Franklin wrote:
> > On Wednesday 09 Oct 2002 9:36 am, Max M wrote:
> > > Hi
> > >
> > > I am writing an app where it would be practical to have a function that
> > > generates a spacer gif in a given color::
> > >
> > >      def spacer(color=''):
> > >          "Generates a 1x1 pixel gif with color, no color means
> > > transparent"
> >
> > Guessing that you are using Tkinter.......  try the PhotoImage class:-
> >


forgot to mention the PhotoImage.write() method that will write out a gif 
file.....



-- 
### Python Powered Signature
I started writting this email on 
Wed Oct  9 11:31:39 2002





More information about the Python-list mailing list