parameters: (self)
docstring: Create and return an iterator object for this pixel data
          object.  (It's really a generator but I won't tell if you
          don't tell.)
docstring_summary: Create and return an iterator object for this pixel data
          object.  (It's really a generator but I won't tell if you
          don't tell.)
docstring_tokens: Create and return an iterator object for this pixel data object . ( It s really a generator but I won t tell if you don t tell . )
function: def __iter__(self):
          """
          Create and return an iterator object for this pixel data
          object.  (It's really a generator but I won't tell if you
          don't tell.)
          """
          width  = self.GetWidth()
          height = self.GetHeight()
          pixels = self.GetPixels()
          
  
  
  
          class PixelFacade(object):
              def Get(self):
                  return pixels.Get()
              def Set(self, *args, **kw):
                  return pixels.Set(*args, **kw)
              def __str__(self):
                  return str(self.Get())
              def __repr__(self):
                  return 'pixel(%d,%d): %s' % (x,y,self.Get())
              X = property(lambda self: x)
              Y = property(lambda self: y)
              
          pf = PixelFacade()        
          for y in xrange(height):
              pixels.MoveTo(self, 0, y)
              for x in xrange(width):
  
  
  
                  yield pf    
                  pixels.nextPixel()
function_tokens: def __iter__ ( self ) : width = self . GetWidth ( ) height = self . GetHeight ( ) pixels = self . GetPixels ( ) class PixelFacade ( object ) : def Get ( self ) : return pixels . Get ( ) def Set ( self , * args , * * kw ) : return pixels . Set ( * args , * * kw ) def __str__ ( self ) : return str ( self . Get ( ) ) def __repr__ ( self ) : return 'pixel(%d,%d): %s' % ( x , y , self . Get ( ) ) X = property ( lambda self : x ) Y = property ( lambda self : y ) pf = PixelFacade ( ) for y in xrange ( height ) : pixels . MoveTo ( self , 0 , y ) for x in xrange ( width ) : yield pf pixels . nextPixel ( )