comparison browser_side/panels.py @ 218:4e6467efd6bf

browser_side: small improvements for parameters panel - auto-select the first tab - remove the parameters item if there's nothing to display
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 19:54:41 +0200
parents f7ec248192de
children 624a87377412
comparison
equal deleted inserted replaced
217:f7ec248192de 218:4e6467efd6bf
770 def __init__(self, host): 770 def __init__(self, host):
771 self.host = host 771 self.host = host
772 AbsolutePanel.__init__(self) 772 AbsolutePanel.__init__(self)
773 773
774 #menu 774 #menu
775 menu = Menu(host) 775 self.menu = Menu(host)
776 776
777 #unibox 777 #unibox
778 unibox_panel = UniBoxPanel(host) 778 unibox_panel = UniBoxPanel(host)
779 self.host.setUniBox(unibox_panel.unibox) 779 self.host.setUniBox(unibox_panel.unibox)
780 780
794 self.discuss_panel = base_widget.WidgetsPanel(self.host, locked=True) 794 self.discuss_panel = base_widget.WidgetsPanel(self.host, locked=True)
795 self.tab_panel.add(self.discuss_panel, "Discussions") 795 self.tab_panel.add(self.discuss_panel, "Discussions")
796 self.tab_panel.selectTab(0) 796 self.tab_panel.selectTab(0)
797 797
798 header = AbsolutePanel() 798 header = AbsolutePanel()
799 header.add(menu) 799 header.add(self.menu)
800 header.add(unibox_panel) 800 header.add(unibox_panel)
801 header.add(status) 801 header.add(status)
802 header.setStyleName('header') 802 header.setStyleName('header')
803 self.add(header) 803 self.add(header)
804 804