update log window
(self)
| 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 | """ |