Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
82:bd575203d456 | 83:68d360caeecb |
---|---|
105 self.tab_panel = self.panel.tab_panel | 105 self.tab_panel = self.panel.tab_panel |
106 self.mpanels = [panels.EmptyPanel(self), panels.MicroblogPanel(self, accept_all=True), panels.EmptyPanel(self)] | 106 self.mpanels = [panels.EmptyPanel(self), panels.MicroblogPanel(self, accept_all=True), panels.EmptyPanel(self)] |
107 self.other_panels = [] #panels not on the main tab #FIXME: temporary, need to be changed | 107 self.other_panels = [] #panels not on the main tab #FIXME: temporary, need to be changed |
108 self.room_list = set() #set of rooms | 108 self.room_list = set() #set of rooms |
109 self.mblog_cache = [] #used to keep blog entries in memory, to show them in new mblog panel | 109 self.mblog_cache = [] #used to keep blog entries in memory, to show them in new mblog panel |
110 self.discuss_panel.changePanel(0,self.mpanels[0]) | 110 self.discuss_panel.addWidget(self.mpanels[0]) |
111 self.discuss_panel.changePanel(1,self.mpanels[1]) | 111 self.discuss_panel.addWidget(self.mpanels[1]) |
112 self.discuss_panel.changePanel(2,self.mpanels[2]) | 112 self.discuss_panel.addWidget(self.mpanels[2]) |
113 self._register_box = None | 113 self._register_box = None |
114 RootPanel().add(self.panel) | 114 RootPanel().add(self.panel) |
115 DOM.addEventPreview(self) | 115 DOM.addEventPreview(self) |
116 self.resize() | 116 self.resize() |
117 self._register = RegisterCall() | 117 self._register = RegisterCall() |