summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-21 14:41:23 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-21 14:41:23 +0100
commit4c98db9a0eb0ca1ca70c4886b907e79682bfad82 (patch)
treef4c412ef5e5875b2cbffd1c79bb4a5b2ec4e0892 /pyLoadGui.py
parentnew update threads, link dock works now (diff)
downloadpyload-4c98db9a0eb0ca1ca70c4886b907e79682bfad82.tar.xz
pause/start button works
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 2afd63033..6c3bae1dd 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -88,6 +88,7 @@ class main(QObject):
self.connect(self.pwWindow, SIGNAL("cancel"), self.quit)
self.connect(self.mainWindow, SIGNAL("connector"), self.slotShowConnector)
self.connect(self.mainWindow, SIGNAL("addLinks"), self.slotAddLinks)
+ self.connect(self.mainWindow, SIGNAL("setDownloadStatus"), self.slotSetDownloadStatus)
def slotShowConnector(self):
self.stopMain()
@@ -142,6 +143,7 @@ class main(QObject):
status["status"] = "Running"
status["speed"] = int(status["speed"])
text = "Status: %(status)s | Speed: %(speed)s kb/s" % status
+ self.mainWindow.actions["toggle_status"].setChecked(not status["pause"])
self.mainWindow.serverStatus.setText(text)
def getConnections(self):
@@ -269,6 +271,9 @@ class main(QObject):
def slotAddLinks(self, links):
self.connector.addURLs(links)
+ def slotSetDownloadStatus(self, status):
+ self.connector.setPause(not status)
+
class Loop(QThread):
def __init__(self, parent):
QThread.__init__(self)