From 070e7152727f8e04910df30bf1d7a92f90a9613f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 27 Jun 2009 20:59:11 +0200 Subject: basic gui functions are working --- pyLoadCore.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pyLoadCore.py') 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 -- cgit v1.2.3