Tabs widget: widget that provide tabs (like tabbed notebook)
Bases: pymt.ui.widgets.widget.MTWidget
Class that implement a tabbed notebook. When you add a widget into tabs, make sure they are at least one tab information
tabs = MTTabs()
w = MTWidget()
w.tab = 'Title of tab'
tabs.add_widget(w)
or
tabs = MTTabs()
w = MTWidget()
tabs.add_widget(w, tab='Title of tab')
If you want to select a tab, use select()
tabs = MTTabs()
tabs.add_widget(MTButton(label="Hello"), tab='Tab1')
tabs.add_widget(MTButton(label="World"), tab='Tab2')
tabs.select('Tab2')
Warning
The position of this widget is the upper-left of the widget. The reason is if they are multiple tabs with multiple height, tabs will always moving when switching from one to another.