Missing import, plus fix body divider palette.

This commit is contained in:
Aldo Cortesi 2012-02-18 18:54:27 +13:00
parent 71ad7140be
commit 5f1d7a0746
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import os
import os, re
import urwid
import common
from .. import utils, encoding, flow
@ -216,19 +216,19 @@ class ConnectionView(common.WWrap):
title = urwid.AttrWrap(urwid.Columns([
urwid.Text(
[
("statusbar", msg),
("heading", msg),
]
),
urwid.Text(
[
" ",
('statusbar_text', "["),
('statusbar_key', "m"),
('statusbar_text', (":%s]"%common.BODY_VIEWS[self.master.state.view_body_mode])),
('heading', "["),
('heading_key', "m"),
('heading', (":%s]"%common.BODY_VIEWS[self.master.state.view_body_mode])),
],
align="right"
),
]), "statusbar")
]), "heading")
txt.append(title)
txt.extend(body)
return urwid.ListBox(txt)