| 2058 | The widget can be a container with other child widgets. |
| 2059 | """ |
| 2060 | def __init__(self, *args, **kwargs): |
| 2061 | super(TabBox, self).__init__(layout_orientation=Container.LAYOUT_VERTICAL, *args, **kwargs) |
| 2062 | self.container_tab_titles = ListView( width="100%", layout_orientation=Container.LAYOUT_HORIZONTAL, _class = 'tabs clearfix' ) |
| 2063 | self.container_tab_titles.onselection.do(self.on_tab_selection) |
| 2064 | super(TabBox, self).append(self.container_tab_titles, "_container_tab_titles") |
| 2065 | self.selected_widget_key = None |
| 2066 | self.tab_keys_ordered_list = [] |
| 2067 | |
| 2068 | def resize_tab_titles(self): |
| 2069 | nch=len(self.container_tab_titles.children.values()) |