diff libervia.py @ 83:68d360caeecb

New widget system: first draft - adaptation of Adrien's design - widgets are now based on a flextable - widgets now use a base class LiberviaWidget (the name is to avoid confustion with pyjamas' widgets) - widgets have a title, and setting/close buttons
author Goffi <goffi@goffi.org>
date Sun, 26 Jun 2011 03:04:17 +0200
parents 9d8e79ac4c9c
children 8f35e9970e7f
line wrap: on
line diff
--- a/libervia.py	Sun Jun 26 03:02:10 2011 +0200
+++ b/libervia.py	Sun Jun 26 03:04:17 2011 +0200
@@ -107,9 +107,9 @@
         self.other_panels = [] #panels not on the main tab #FIXME: temporary, need to be changed
         self.room_list = set() #set of rooms 
         self.mblog_cache = [] #used to keep blog entries in memory, to show them in new mblog panel
-        self.discuss_panel.changePanel(0,self.mpanels[0])
-        self.discuss_panel.changePanel(1,self.mpanels[1])
-        self.discuss_panel.changePanel(2,self.mpanels[2])
+        self.discuss_panel.addWidget(self.mpanels[0])
+        self.discuss_panel.addWidget(self.mpanels[1])
+        self.discuss_panel.addWidget(self.mpanels[2])
         self._register_box = None
         RootPanel().add(self.panel)
         DOM.addEventPreview(self)