comparison libervia.py @ 200:0f5c2f799913

browser side: clicking on the contacts list (contact item, group or the "contacts" main title) open a discussion or microblog
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2013 14:09:10 +0100
parents dd27072d8ae0
children 2bc6cf004e61
comparison
equal deleted inserted replaced
199:39311c7dad77 200:0f5c2f799913
231 @param label: label of the tab""" 231 @param label: label of the tab"""
232 _widgets_panel = WidgetsPanel(self) 232 _widgets_panel = WidgetsPanel(self)
233 _widgets_panel.addWidget(wid) 233 _widgets_panel.addWidget(wid)
234 self.tab_panel.add(_widgets_panel, label) 234 self.tab_panel.add(_widgets_panel, label)
235 self.tab_panel.selectTab(self.tab_panel.getWidgetCount() - 1) 235 self.tab_panel.selectTab(self.tab_panel.getWidgetCount() - 1)
236
237 def addWidget(self, wid):
238 """ Add a widget at the bottom of the current tab
239 @param wid: LiberviaWidget to add """
240 panel = self.tab_panel.getCurrentPanel()
241 panel.addWidget(wid)
236 242
237 def _isRegisteredCB(self, registered): 243 def _isRegisteredCB(self, registered):
238 if not registered: 244 if not registered:
239 self._register_box = RegisterBox(self.logged) 245 self._register_box = RegisterBox(self.logged)
240 self._register_box.centerBox() 246 self._register_box.centerBox()