comparison browser_side/panels.py @ 66:9d8e79ac4c9c

Login/Register box: integration of Adrien Vigneron's design
author Goffi <goffi@goffi.org>
date Wed, 15 Jun 2011 00:52:02 +0200
parents 12e889a683ce
children c335675eef7c
comparison
equal deleted inserted replaced
65:8f421a12b8f9 66:9d8e79ac4c9c
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 """ 4 """
5 Libervia: a Salut à Toi frontend 5 Libervia: a Salut à Toi frontend
6 Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org) 6 Copyright (C) 2011 Jérôme Poisson <goffi@goffi.org>
7 7
8 This program is free software: you can redistribute it and/or modify 8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as published by 9 it under the terms of the GNU Affero General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or 10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version. 11 (at your option) any later version.
747 class MainTabPanel(TabPanel): 747 class MainTabPanel(TabPanel):
748 748
749 def __init__(self, host): 749 def __init__(self, host):
750 TabPanel.__init__(self) 750 TabPanel.__init__(self)
751 self.host=host 751 self.host=host
752 TabPanel()
753 self.tabBar.setVisible(False) 752 self.tabBar.setVisible(False)
754 self.addStyleName('mainTabPanel') 753 self.setStyleName('mainTabPanel')
755 Window.addWindowResizeListener(self) 754 Window.addWindowResizeListener(self)
756 755
757 def onWindowResized(self, width, height): 756 def onWindowResized(self, width, height):
758 tab_panel_elt = self.getElement() 757 tab_panel_elt = self.getElement()
759 _elts = doc().getElementsByClassName('gwt-TabBar') 758 _elts = doc().getElementsByClassName('gwt-TabBar')