|
Line
Link Here
|
| 0 |
-- a/utils/adesklets_installer |
0 |
++ b/utils/adesklets_installer |
|
Lines 470-476
try:
Link Here
|
| 470 |
self.lines = data.splitlines() |
470 |
self.lines = data.splitlines() |
| 471 |
else: |
471 |
else: |
| 472 |
self.lines = data |
472 |
self.lines = data |
| 473 |
for i, line in zip(xrange(len(self.lines)), self.lines): |
473 |
for i, line in zip(range(len(self.lines)), self.lines): |
| 474 |
self.pad.addstr(i, 0, line) |
474 |
self.pad.addstr(i, 0, line) |
| 475 |
self.scroll(0) |
475 |
self.scroll(0) |
| 476 |
else: |
476 |
else: |
|
Lines 496-504
try:
Link Here
|
| 496 |
new = 0 |
496 |
new = 0 |
| 497 |
elif new >= len(self.lines): |
497 |
elif new >= len(self.lines): |
| 498 |
new = len(self.lines)-1 |
498 |
new = len(self.lines)-1 |
| 499 |
|
499 |
|
| 500 |
self.pad.addstr(self.cur, 0, self.lines[self.cur]) |
500 |
if len(self.lines)>1: |
| 501 |
self.pad.addstr(new, 0, self.lines[new], self.hl) |
501 |
self.pad.addstr(self.cur, 0, self.lines[self.cur]) |
|
|
502 |
self.pad.addstr(new, 0, self.lines[new], self.hl) |
| 502 |
self.cur = new |
503 |
self.cur = new |
| 503 |
self.refresh() |
504 |
self.refresh() |
| 504 |
|
505 |
|
|
Lines 620-633
warranty; not even for MERCHANTABILITY o
Link Here
|
| 620 |
opts, args= p.parse_args() |
621 |
opts, args= p.parse_args() |
| 621 |
|
622 |
|
| 622 |
# Just instanciate the right GUI to start up the application |
623 |
# Just instanciate the right GUI to start up the application |
| 623 |
# In orger, we try to instanciate the Tk, curses and raw |
624 |
# In order, we try to instanciate the Tk, curses and raw |
| 624 |
# interface, falling to the next in case of unavailability or |
625 |
# interface, falling to the next in case of unavailability or |
| 625 |
# initialization errors |
626 |
# initialization errors |
| 626 |
# |
627 |
# |
| 627 |
select = opts.raw + opts.curses + opts.Tk |
628 |
select = opts.raw + opts.curses + opts.Tk |
| 628 |
for ui in ('Tk', 'curses', 'raw'): |
629 |
for ui in ('Tk', 'curses', 'raw'): |
| 629 |
if (globals().has_key('%sGUI' % ui) and |
630 |
if (globals().has_key('%sGUI' % ui) and |
| 630 |
getattr(opts, ui) or select==0 or ui=='raw'): |
631 |
(getattr(opts, ui) or select==0 or ui=='raw')): |
| 631 |
if globals()['%sGUI' % ui](): break |
632 |
if globals()['%sGUI' % ui](): break |