diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-11-23 15:44:43 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-11-23 15:44:43 +1300 |
commit | 626fc3980444b4dc6fd9c53db98b75f767880292 (patch) | |
tree | 538bea4c2e548534ac20e75001c4f51c75147c3c | |
parent | 57d6650e8e1243a66fbaf3d4124c592638e8af91 (diff) | |
download | mitmproxy-626fc3980444b4dc6fd9c53db98b75f767880292.tar.gz mitmproxy-626fc3980444b4dc6fd9c53db98b75f767880292.tar.bz2 mitmproxy-626fc3980444b4dc6fd9c53db98b75f767880292.zip |
Move eventlog to new Urwid container API.
-rw-r--r-- | libmproxy/console/flowlist.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 1fdd92b7..c70393a1 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -74,13 +74,11 @@ class BodyPile(urwid.Pile): ] ) self.master = master - self.focus = 0 def keypress(self, size, key): if key == "tab": - self.focus = (self.focus + 1)%len(self.widget_list) - self.set_focus(self.focus) - if self.focus == 1: + self.focus_position = (self.focus_position + 1)%len(self.widget_list) + if self.focus_position == 1: self.widget_list[1].header = self.active_header else: self.widget_list[1].header = self.inactive_header |