wok view wicd/stuff/835_834.patch @ rev 15325

Up tcpdump (4.4.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 21:59:48 2013 +0000 (2013-09-27)
parents
children
line source
1 === modified file 'curses/curses_misc.py'
2 --- curses/curses_misc.py 2012-11-15 09:26:21 +0000
3 +++ curses/curses_misc.py 2012-11-16 09:22:47 +0000
4 @@ -352,7 +352,7 @@
5 if urwid.VERSION < (1, 1, 0):
6 self.focus = focus
7 else:
8 - self.focus_position = focus
9 + self._w.focus_position = focus
11 self.callback = callback
12 self.user_args = user_args
13 @@ -368,7 +368,10 @@
14 if urwid.VERSION < (1, 1, 0):
15 self.focus = index
16 else:
17 - self.focus_position = index
18 + try:
19 + self._w.focus_position = index
20 + except IndexError:
21 + pass
23 # API changed between urwid 0.9.8.4 and 0.9.9
24 try:
25 @@ -386,7 +389,7 @@
26 if urwid.VERSION < (1, 1, 0):
27 index = self.focus
28 else:
29 - index = self.focus_position
30 + index = self._w.focus_position
32 self.cbox = DynWrap(SelText([self.list[index]+self.DOWN_ARROW]),
33 attrs=self.attrs,focus_attr=self.focus_attr)
34 @@ -434,7 +437,7 @@
35 if urwid.VERSION < (1, 1, 0):
36 return None, self.focus
37 else:
38 - return None, self.focus_position
39 + return None, self._w.focus_position
41 def get_sensitive(self):
42 return self.cbox.get_sensitive()