Skip to content

Commit

Permalink
Screen explorer/Python 3: xrange -> range. Re nvaccess#2559
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsl committed Sep 18, 2019
1 parent 45edb7c commit 7cfc026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/screenExplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def playObjectCoordinates(obj):
# First, obtain where the center of the object is.
x, y = obj.location.center
# The object might be located on another display.
displays = [ wx.Display(i).GetGeometry() for i in xrange(wx.Display.GetCount()) ]
displays = [wx.Display(i).GetGeometry() for i in range(wx.Display.GetCount())]
x, y = mouseHandler.getMouseRestrictedToScreens(x, y, displays)
screenWidth, screenHeight, minPos = mouseHandler.getTotalWidthAndHeightAndMinimumPosition(displays)
playLocationCoordinates(x, y, screenWidth, screenHeight, screenMinPos=minPos, detectBrightness=False)
Expand Down

0 comments on commit 7cfc026

Please sign in to comment.