Add method addLinesToConsoleAndScrollToDisplayThem in UiConsole
This commit is contained in:
parent
8b126f636b
commit
cbb9508c19
@ -70,3 +70,10 @@ class UiConsole(UiElement):
|
|||||||
|
|
||||||
self.linesImages.append(row)
|
self.linesImages.append(row)
|
||||||
self.linesImagesCount += 1
|
self.linesImagesCount += 1
|
||||||
|
|
||||||
|
def addLinesToConsoleAndScrollToDisplayThem(self, linesToAdd):
|
||||||
|
self.addLinesToConsole(linesToAdd)
|
||||||
|
ind = 0
|
||||||
|
if self.linesImagesCount > self.maxLines:
|
||||||
|
ind = self.linesImagesCount - self.maxLines
|
||||||
|
self.writeConsoleLines(ind)
|
||||||
|
Loading…
Reference in New Issue
Block a user