comparison browser_side/richtext.py @ 233:146fc6739951

browser side: fixed RichTextEditor debug mode when no parameter exists.
author souliane <souliane@mailoo.org>
date Wed, 09 Oct 2013 15:12:50 +0200
parents 0ed09cc0566f
children d4e73d9140af
comparison
equal deleted inserted replaced
232:0ed09cc0566f 233:146fc6739951
165 host.richtext.syncFromUniBox() 165 host.richtext.syncFromUniBox()
166 return host.richtext.popup if parent is None else host.richtext 166 return host.richtext.popup if parent is None else host.richtext
167 167
168 def setVisible(self, kwargs): 168 def setVisible(self, kwargs):
169 """Called each time the widget is displayed, after creation or after having been hidden.""" 169 """Called each time the widget is displayed, after creation or after having been hidden."""
170 self.host.bridge.call('asyncGetParamA', self.setToolBar, FORMAT_PARAM_NAME, FORMAT_PARAM_KEY) 170 self.host.bridge.call('asyncGetParamA', self.setToolBar, FORMAT_PARAM_NAME, FORMAT_PARAM_KEY) or self.setToolBar(None)
171 FlexTable.setVisible(self, kwargs) 171 FlexTable.setVisible(self, kwargs)
172 172
173 def __close(self): 173 def __close(self):
174 """Remove the widget from parent or close the popup.""" 174 """Remove the widget from parent or close the popup."""
175 if self._parent is None: 175 if self._parent is None: