diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-27 20:59:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-06-27 20:59:11 +0200 |
commit | 070e7152727f8e04910df30bf1d7a92f90a9613f (patch) | |
tree | e17fc21bb3797a17122bff7dc65969ce3dfe6cd8 /pyLoadCore.py | |
parent | gui displays downloads (diff) | |
download | pyload-070e7152727f8e04910df30bf1d7a92f90a9613f.tar.xz |
basic gui functions are working
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r-- | pyLoadCore.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 3f45ca332..b250d3f55 100644 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -269,6 +269,20 @@ class Core(object): def get_links(self): return self.file_list.data + def move_links_up(self, ids): + + for id in ids: + self.file_list.move(id) + + self.file_list.save() + + def move_links_down(self, ids): + + for id in ids: + self.file_list.move(id, 1) + + self.file_list.save() + def toggle_pause(self): if self.thread_list.pause: self.thread_list.pause = False |