fix some stuff

This commit is contained in:
chrys 2018-05-28 07:12:35 +02:00
parent 2dd92b7c68
commit c313b2fee9
2 changed files with 7 additions and 15 deletions

View File

@ -199,23 +199,16 @@ class attributeManager():
# background.append(bgStat[1][0])
except Exception as e:
print(e)
print('start')
#background.append((7,7,0,0,0,0))
for line in range(len(newAttr)):
print(len(textLines[line]))
#print(line,len(newAttr), len(oldAttr))
if oldAttr[line] != newAttr[line]:
for column in range(len(newAttr[line])):
#print(column,len(newAttr[line]))
print(len(oldAttr[line]), len(newAttr[line]))
for column in range(len(oldAttr[line])):
if oldAttr[line][column] != newAttr[line][column]:
print('jo')
#if not self.isDefaultAttribute(newAttr[line][column]):
#if not currCursor:
#currCursor = {}
#currCursor['x'] = column
#currCursor['y'] = line
#result += textLines[line][column]
if not self.isDefaultAttribute(newAttr[line][column]):
if not currCursor:
currCursor = {}
currCursor['x'] = column
currCursor['y'] = line
result += textLines[line][column]
result += ' '
print('end')
return result, currCursor

View File

@ -196,7 +196,6 @@ class driver(screenDriver):
allText = ''
allAttrib = []
i = 0
print(rows)
for y in range(rows):
lineText = ''
lineAttrib = []