diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-11-30 23:31:37 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-11-30 23:31:37 +0100 |
commit | dcf9df576d0e30e016bb6ecb9fb67decc04d2761 (patch) | |
tree | c226dc2e7cdbddf4069b6f1b18f84021380ff8c8 /pyLoadCli.py | |
parent | fixed file_list (diff) | |
download | pyload-dcf9df576d0e30e016bb6ecb9fb67decc04d2761.tar.xz |
Fixed EOL Errors, beautified js
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-x | pyLoadCli.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py index e94a7e57d..cf75019be 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -54,12 +54,13 @@ class pyLoadCli: self.connect(server_url) - self.lock.acquire()
- curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK)
- curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK)
- curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK)
- curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK)
- curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE) + self.lock.acquire() + + curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK) + curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK) + curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK) + curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK) + curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE ) self.screen = self.stdscr.subwin(23, 79, 0, 0) self.screen.box() @@ -86,7 +87,7 @@ class pyLoadCli: raise Exception("server is version %s client accepts version %s" % (server_version, SERVER_VERSION)) def refresh(self): - self.lock.acquire()
+ self.lock.acquire() self.screen.refresh() self.lock.release() @@ -342,7 +343,7 @@ class LoopThread(Thread): server_url = "" def main(stdscr): - global server_url
+ global server_url cli = pyLoadCli(stdscr, server_url) refresh_loop = LoopThread(cli.update_status, sleep_time=1) refresh_loop.start() |