wok annotate 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
rev   line source
mojo@14649 1 === modified file 'curses/curses_misc.py'
mojo@14649 2 --- curses/curses_misc.py 2012-11-15 09:26:21 +0000
mojo@14649 3 +++ curses/curses_misc.py 2012-11-16 09:22:47 +0000
mojo@14649 4 @@ -352,7 +352,7 @@
mojo@14649 5 if urwid.VERSION < (1, 1, 0):
mojo@14649 6 self.focus = focus
mojo@14649 7 else:
mojo@14649 8 - self.focus_position = focus
mojo@14649 9 + self._w.focus_position = focus
mojo@14649 10
mojo@14649 11 self.callback = callback
mojo@14649 12 self.user_args = user_args
mojo@14649 13 @@ -368,7 +368,10 @@
mojo@14649 14 if urwid.VERSION < (1, 1, 0):
mojo@14649 15 self.focus = index
mojo@14649 16 else:
mojo@14649 17 - self.focus_position = index
mojo@14649 18 + try:
mojo@14649 19 + self._w.focus_position = index
mojo@14649 20 + except IndexError:
mojo@14649 21 + pass
mojo@14649 22
mojo@14649 23 # API changed between urwid 0.9.8.4 and 0.9.9
mojo@14649 24 try:
mojo@14649 25 @@ -386,7 +389,7 @@
mojo@14649 26 if urwid.VERSION < (1, 1, 0):
mojo@14649 27 index = self.focus
mojo@14649 28 else:
mojo@14649 29 - index = self.focus_position
mojo@14649 30 + index = self._w.focus_position
mojo@14649 31
mojo@14649 32 self.cbox = DynWrap(SelText([self.list[index]+self.DOWN_ARROW]),
mojo@14649 33 attrs=self.attrs,focus_attr=self.focus_attr)
mojo@14649 34 @@ -434,7 +437,7 @@
mojo@14649 35 if urwid.VERSION < (1, 1, 0):
mojo@14649 36 return None, self.focus
mojo@14649 37 else:
mojo@14649 38 - return None, self.focus_position
mojo@14649 39 + return None, self._w.focus_position
mojo@14649 40
mojo@14649 41 def get_sensitive(self):
mojo@14649 42 return self.cbox.get_sensitive()
mojo@14649 43