pyGTK gtk.Style obj
Hi all. in this sentence: self.area = gtk.DrawingArea() self.style = self.area.get_style() self.gc = self.style.fg_gc[gtk.STATE_NORMAL] where can I find about style and its property? thanks Ivan -- http://mail.python.org/mailman/listinfo/python-list
Re: pyGTK gtk.Style obj
Lawrence Oluyede ha scritto: > Il 2005-12-13, ivan.dm <[EMAIL PROTECTED]> ha scritto: > >>Hi all. >> >>in this sentence: >>self.area = gtk.DrawingArea() >>self.style = self.area.get_style() >>self.gc = self.style.fg_gc[gtk.STATE_NORMAL] >> >>where can I find about style and its property? > > > In the tutorial: > http://www.pygtk.org/pygtk2tutorial/sec-WidgetStyles.html > > ouch! obvious. :) I did'n find it; I take off my sunglasses when I reading, of course!!! -- http://mail.python.org/mailman/listinfo/python-list
python-list@python.org
Hi Body, Can I set an image from file into DrawArea, so I can resize and drawing any object over its image? any tips or idea? Thanks Ivan -- http://mail.python.org/mailman/listinfo/python-list
PIL.Image.frombuffer/string ... who do data using?
hello again everyone! I'm writing a wrapper for tif file that parse its and return the data image in this way below : self.fp.seek(StripOffsets) data = self.fp.read(StripByteCounts) return data where: self.fp is a file object StripOffsets is a offset position of image StripByCounts is extend of image after we get a data, now to set its in PIL.Image.fromstring(...) but ( evely! :) ), returned this error follow: ValueError "not enough image data" why??? Should I to convert data in other format??? any suggestion? Thanks and regard. Ivan -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL.Image.frombuffer/string ... who do data using?
Peter Hansen ha scritto: > ivan.dm wrote: > >> I'm writing a wrapper for tif file that parse its and return the data >> image in this way below : >> >> self.fp.seek(StripOffsets) >> data = self.fp.read(StripByteCounts) >> return data > > ... > >> after we get a data, now to set its in PIL.Image.fromstring(...) >> but ( evely! :) ), returned this error follow: >> >> ValueError >> "not enough image data" > > > Why are you doing it this way instead of just using Image.open()? PIL > already knows how to read and convert TIFF images... > > -Peter > yes! for all format it can decode, except for compression G3/G4. I'm searching a method for decode this compression format Ivan -- http://mail.python.org/mailman/listinfo/python-list