1.1 --- a/examples/PyGmy/ppygmy.py Wed Sep 12 00:14:07 2007 +0000
1.2 +++ b/examples/PyGmy/ppygmy.py Wed Sep 12 00:14:38 2007 +0000
1.3 @@ -396,11 +396,9 @@
1.4 "Store the data arriving on the given 'channel'."
1.5
1.6 sy, row = channel.receive()
1.7 - sx = 0
1.8 - for col in row:
1.9 + for sx, col in enumerate(row):
1.10 self.draw.point((sx,sy),fill=(col.x*255,col.y*255,col.z*255))
1.11 self.count = self.count + 1
1.12 - sx += 1
1.13
1.14 percent = int((self.count/float(self.total))*100)
1.15 sys.stdout.write(("\010" * 9) + "%3d%% %3d" % (percent, sy))