Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 1762:2e2fb462729a
quick_frontend, primitivus (chat): printing the history is left to quick_frontend
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 22 Dec 2015 11:39:45 +0100 |
parents | 77870d2e2902 |
children | d17772b0fe22 |
comparison
equal
deleted
inserted
replaced
1761:ad20cedbf25e | 1762:2e2fb462729a |
---|---|
91 self.chat_colums = urwid.Columns([('weight', 8, self.chat_widget)]) | 91 self.chat_colums = urwid.Columns([('weight', 8, self.chat_widget)]) |
92 self.pile = urwid.Pile([self.chat_colums]) | 92 self.pile = urwid.Pile([self.chat_colums]) |
93 PrimitivusWidget.__init__(self, self.pile, self.target) | 93 PrimitivusWidget.__init__(self, self.pile, self.target) |
94 | 94 |
95 # we must adapt the behaviour with the type | 95 # we must adapt the behaviour with the type |
96 if type_ == C.CHAT_ONE2ONE: | 96 if type_ == C.CHAT_GROUP: |
97 self.historyPrint(profile=self.profile) | |
98 elif type_ == C.CHAT_GROUP: | |
99 if len(self.chat_colums.contents) == 1: | 97 if len(self.chat_colums.contents) == 1: |
100 self.occupants_list = sat_widgets.GenericList([], option_type=sat_widgets.ClickableText, on_click=self._occupantsClicked) | 98 self.occupants_list = sat_widgets.GenericList([], option_type=sat_widgets.ClickableText, on_click=self._occupantsClicked) |
101 self.occupants_panel = sat_widgets.VerticalSeparator(self.occupants_list) | 99 self.occupants_panel = sat_widgets.VerticalSeparator(self.occupants_list) |
102 self._appendOccupantsPanel() | 100 self._appendOccupantsPanel() |
103 self.host.addListener('presence', self.presenceListener, [profiles]) | 101 self.host.addListener('presence', self.presenceListener, [profiles]) |