mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user