To make Fenrir easier to approach for new developer, start code migration to be pep8 compliant.
This commit is contained in:
@ -6,13 +6,14 @@
|
||||
|
||||
from fenrirscreenreader.core import debug
|
||||
|
||||
def getPrevLine(currX,currY, currText):
|
||||
|
||||
def getPrevLine(currX, currY, currText):
|
||||
endOfScreen = False
|
||||
if currText == '':
|
||||
return -1, -1, '', endOfScreen
|
||||
wrappedLines = currText.split('\n')
|
||||
x = currX
|
||||
y = currY
|
||||
y = currY
|
||||
if y - 1 >= 0:
|
||||
y -= 1
|
||||
else:
|
||||
@ -23,7 +24,8 @@ def getPrevLine(currX,currY, currText):
|
||||
currLine = wrappedLines[y]
|
||||
return x, y, currLine, endOfScreen
|
||||
|
||||
def getCurrentLine(currX,currY, currText):
|
||||
|
||||
def getCurrentLine(currX, currY, currText):
|
||||
if currText == '':
|
||||
return -1, -1, ''
|
||||
wrappedLines = currText.split('\n')
|
||||
@ -33,7 +35,8 @@ def getCurrentLine(currX,currY, currText):
|
||||
currLine = wrappedLines[y]
|
||||
return x, y, currLine
|
||||
|
||||
def getNextLine(currX,currY, currText):
|
||||
|
||||
def getNextLine(currX, currY, currText):
|
||||
endOfScreen = False
|
||||
if currText == '':
|
||||
return -1, -1, '', endOfScreen
|
||||
@ -47,5 +50,5 @@ def getNextLine(currX,currY, currText):
|
||||
x = currX
|
||||
currLine = ''
|
||||
if not endOfScreen:
|
||||
currLine = wrappedLines[y]
|
||||
currLine = wrappedLines[y]
|
||||
return x, y, currLine, endOfScreen
|
||||
|
Reference in New Issue
Block a user