Primitivus: begining of management for actionResult

This commit is contained in:
Goffi 2010-07-31 00:34:05 +08:00
commit 49a5f2de2c

View file

@ -108,7 +108,7 @@ class Chat(urwid.WidgetWrap, QuickChat):
for wid in self.content:
wid._invalidate()
elif key == "meta l": #user wants to (un)hide widget decoration
show = not self._w.__class__ == custom_widgets.LabelLine
show = not isinstance(self._w, custom_widgets.LabelLine)
self.showDecoration(show)
self._invalidate()
elif key == "meta s": #user wants to (un)hide group's subject
@ -223,7 +223,7 @@ class Chat(urwid.WidgetWrap, QuickChat):
self.host.redraw()
def printMessage(self, from_jid, msg, profile, timestamp=""):
assert (from_jid.__class__ == JID)
assert isinstance(from_jid, JID)
my_jid = self.host.profiles[profile]['whoami']
self.content.append(ChatText(self, timestamp or None, my_jid, from_jid, msg))
self.text_list.set_focus(len(self.content)-1)