Primitivus: begining of management for actionResult
This commit is contained in:
parent
e35ee355ba
commit
49a5f2de2c
1 changed files with 37 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue