summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-27 15:26:33 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-27 15:26:33 +0100
commitff7d4f1a13db0f4a9d6c427dcccbb0d1faf6c577 (patch)
treef84a1bc86164d5dbdc5cba0c0a49b85dd8c642c0 /pyLoadGui.py
parentstop button works, closes #59 (diff)
downloadpyload-ff7d4f1a13db0f4a9d6c427dcccbb0d1faf6c577.tar.xz
closes #51
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py14
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