diff 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
line wrap: on
line diff
--- a/libervia.py	Wed Mar 20 23:42:53 2013 +0100
+++ b/libervia.py	Mon Mar 25 14:09:10 2013 +0100
@@ -234,6 +234,12 @@
         self.tab_panel.add(_widgets_panel, label)
         self.tab_panel.selectTab(self.tab_panel.getWidgetCount() - 1)
 
+    def addWidget(self, wid):
+        """ Add a widget at the bottom of the current tab
+        @param wid: LiberviaWidget to add """
+        panel = self.tab_panel.getCurrentPanel()
+        panel.addWidget(wid)
+
     def _isRegisteredCB(self, registered):
         if not registered:
             self._register_box = RegisterBox(self.logged)