diff options
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index 0f76e6429..ea106c516 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -217,6 +217,9 @@ class main(QObject): self.mainWindow.serverStatus.setText(text) def refreshLog(self): + """ + update log window + """ offset = self.mainWindow.tabs["log"]["text"].logOffset lines = self.connector.getLog(offset) if not lines: @@ -228,6 +231,16 @@ class main(QObject): cursor.movePosition(QTextCursor.End, QTextCursor.MoveAnchor) self.mainWindow.tabs["log"]["text"].setTextCursor(cursor) + def updateAvailable(self): + """ + update notification + """ + status = self.connector.updateAvailable() + if status: + self.mainWindow.statusbar.emit(SIGNAL("showMsg"), "Update Available") + else: + self.mainWindow.statusbar.emit(SIGNAL("showMsg"), "") + def getConnections(self): """ parse all connections in the config file @@ -494,6 +507,7 @@ class main(QObject): """ self.parent.refreshServerStatus() self.parent.refreshLog() + self.parent.updateAvailable() def stop(self): self.running = False |