primitivus: fixed edit bar's captions encoding (could cause crashes)
This commit is contained in:
parent
faf878968b
commit
58c9328742
1 changed files with 3 additions and 3 deletions
|
|
@ -215,9 +215,9 @@ class PrimitivusApp(QuickApp):
|
|||
#self.center_part = urwid.Columns([('weight',2,self.contact_list),('weight',8,Chat('',self))])
|
||||
self.center_part = urwid.Columns([('weight',2,self.contact_list), ('weight',8,urwid.Filler(urwid.Text('')))])
|
||||
|
||||
modes = {None: ('NORMAL', ''),
|
||||
'i': ('INSERTION','> '),
|
||||
':': ('COMMAND',':')}
|
||||
modes = {None: ('NORMAL', u''),
|
||||
'i': ('INSERTION', u'> '),
|
||||
':': ('COMMAND', u':')} #XXX: captions *MUST* be unicode
|
||||
self.editBar = sat_widgets.ModalEdit(modes)
|
||||
self.editBar.setCompletionMethod(self._text_completion)
|
||||
urwid.connect_signal(self.editBar,'click',self.onTextEntered)
|
||||
|
|
|
|||
Loading…
Reference in a new issue