From 08fdd23e234ffaa11352891b103377240bc11fbe Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 18 Feb 2012 11:11:59 +1300 Subject: Refactor the way we display flows. Use columns to make spacing nicer, and to ensure that long URLs don't bugger up formatting when they spill into the next line. --- libmproxy/console/connlist.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmproxy/console/connlist.py') diff --git a/libmproxy/console/connlist.py b/libmproxy/console/connlist.py index a06f3e65..4e8bfebd 100644 --- a/libmproxy/console/connlist.py +++ b/libmproxy/console/connlist.py @@ -79,7 +79,6 @@ class BodyPile(urwid.Pile): return self.focus_item.keypress( tsize, key ) - class ConnectionItem(common.WWrap): def __init__(self, master, state, flow, focus): self.master, self.state, self.flow = master, state, flow @@ -88,7 +87,7 @@ class ConnectionItem(common.WWrap): common.WWrap.__init__(self, w) def get_text(self): - return urwid.Text(common.format_flow(self.flow, self.focus)) + return common.format_flow(self.flow, self.focus) def selectable(self): return True -- cgit v1.2.3