Mercurial > libervia-web
comparison src/browser/sat_browser/libervia_widget.py @ 657:0b7e4226378d frontends_multi_profiles
browser_side: hide the tab bar and contact list's toggle button until the profile is connected
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Feb 2015 13:12:28 +0100 |
parents | 4dbd99de3aaa |
children | 476d8d9973d3 |
comparison
equal
deleted
inserted
replaced
656:4dbd99de3aaa | 657:0b7e4226378d |
---|---|
749 TabPanel.__init__(self, FloatingTab=True) | 749 TabPanel.__init__(self, FloatingTab=True) |
750 ClickHandler.__init__(self) | 750 ClickHandler.__init__(self) |
751 self.host = host | 751 self.host = host |
752 self.setStyleName('liberviaTabPanel') | 752 self.setStyleName('liberviaTabPanel') |
753 self.tabBar.addTab(u'✚', asHTML=True) | 753 self.tabBar.addTab(u'✚', asHTML=True) |
754 self.tabBar.setVisible(False) # set to True when profile is logged | |
754 self.tabBar.addStyleDependentName('oneTab') | 755 self.tabBar.addStyleDependentName('oneTab') |
755 | 756 |
756 def onTabSelected(self, sender, tabIndex): | 757 def onTabSelected(self, sender, tabIndex): |
757 if tabIndex < self.getWidgetCount(): | 758 if tabIndex < self.getWidgetCount(): |
758 TabPanel.onTabSelected(self, sender, tabIndex) | 759 TabPanel.onTabSelected(self, sender, tabIndex) |