MCPcopy Index your code
hub / github.com/pyload/pyload / refreshLog

Method refreshLog

pyLoadGui.py:297–310  ·  view source on GitHub ↗

update log window

(self)

Source from the content-addressed store, hash-verified

295 self.mainWindow.actions["toggle_status"].setChecked(not s.pause)
296
297 def refreshLog(self):
298 """
299 update log window
300 """
301 offset = self.mainWindow.tabs["log"]["text"].logOffset
302 lines = self.connector.getLog(offset)
303 if not lines:
304 return
305 self.mainWindow.tabs["log"]["text"].logOffset += len(lines)
306 for line in lines:
307 self.mainWindow.tabs["log"]["text"].emit(SIGNAL("append(QString)"), line.strip("\n"))
308 cursor = self.mainWindow.tabs["log"]["text"].textCursor()
309 cursor.movePosition(QTextCursor.End, QTextCursor.MoveAnchor)
310 self.mainWindow.tabs["log"]["text"].setTextCursor(cursor)
311
312 def getConnections(self):
313 """

Callers 1

updateMethod · 0.80

Calls 1

getLogMethod · 0.45

Tested by

no test coverage detected