Py3 fix, use range instead of xrange

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-10-23 17:19:30 +00:00
parent f33f0d7310
commit da2db31c51

View File

@@ -121,7 +121,10 @@ def addPixelDataBaseClass(module):
return 'pixel(%d,%d): %s' % (x,y,self.Get())
X = property(lambda self: x)
Y = property(lambda self: y)
if sys.version_info >= (3,):
xrange = range
pf = PixelFacade()
for y in xrange(height):
pixels.MoveTo(self, 0, y)