Mercurial > libervia-web
comparison browser_side/panels.py @ 39:305e81c7a32c
Tarot game: a game can now be finished
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 22 May 2011 00:15:01 +0200 |
parents | 7bea2ae0c4fb |
children | a7ff1e6f1229 |
comparison
equal
deleted
inserted
replaced
38:7bea2ae0c4fb | 39:305e81c7a32c |
---|---|
145 _contact = JID(item) | 145 _contact = JID(item) |
146 _new_panel = ChatPanel(self.host, _contact) | 146 _new_panel = ChatPanel(self.host, _contact) |
147 _new_panel.historyPrint() | 147 _new_panel.historyPrint() |
148 elif item_type=="CONTACT_TITLE": | 148 elif item_type=="CONTACT_TITLE": |
149 _new_panel = MicroblogPanel(self.host, accept_all=True) | 149 _new_panel = MicroblogPanel(self.host, accept_all=True) |
150 else: | |
151 return | |
150 self.host.mpanels.remove(self) | 152 self.host.mpanels.remove(self) |
151 self.host.mpanels.append(_new_panel) | 153 self.host.mpanels.append(_new_panel) |
152 grid = self.getParent() | 154 grid = self.getParent() |
153 row_idx, cell_idx = self._getCellAndRow(grid, event) | 155 row_idx, cell_idx = self._getCellAndRow(grid, event) |
154 if self.host.selected == self: | 156 if self.host.selected == self: |