comparison src/browser/panels.py @ 462:07433bd892ee

server and browser sides: fixes UI parameters initialisation with user values + small refactoring
author souliane <souliane@mailoo.org>
date Wed, 04 Jun 2014 00:23:14 +0200
parents 4f25aa5039b3
children b62c1cf0dbf7
comparison
equal deleted inserted replaced
461:4f25aa5039b3 462:07433bd892ee
77 self.setStyleName('uniBoxPanel') 77 self.setStyleName('uniBoxPanel')
78 self.unibox = None 78 self.unibox = None
79 79
80 def refresh(self): 80 def refresh(self):
81 """Enable or disable this panel. Contained widgets are created when necessary.""" 81 """Enable or disable this panel. Contained widgets are created when necessary."""
82 enable = self.host.params_ui['unibox']['value'] 82 enable = self.host.getUIParam('unibox')
83 self.setVisible(enable) 83 self.setVisible(enable)
84 if enable and not self.unibox: 84 if enable and not self.unibox:
85 self.button = Button('<img src="media/icons/tango/actions/32/format-text-italic.png" class="richTextIcon"/>') 85 self.button = Button('<img src="media/icons/tango/actions/32/format-text-italic.png" class="richTextIcon"/>')
86 self.button.setTitle('Open the rich text editor') 86 self.button.setTitle('Open the rich text editor')
87 self.button.addStyleName('uniBoxButton') 87 self.button.addStyleName('uniBoxButton')