from kivy.uix.tabbedpanel import TabbedPanel
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.lang import Builder
Builder.load_string("""
<Test>:
size_hint: 1, 1
pos_hint: {'center_x': .5, 'center_y': .5}
do_default_tab: False
TabbedPanelItem:
text: 'Drives'
Label:
text: 'Drives Available'
TabbedPanelItem:
text: 'Tests'
BoxLayout:
Label:
text: 'Tests'
Button:
text: 'Select Tests'
TabbedPanelItem:
text: 'Details'
RstDocument:
text:
'\\n'.join(("Details", "-----------",
"Model Number"))
TabbedPanelItem:
text: 'Start'
RstDocument:
text:
'\\n'.join(("Details", "-----------",
"Progress"))
""")
class Test(TabbedPanel):
pass
class TabbedPanelApp(App):
def build(self):
return Test()
if __name__ == '__main__':
TabbedPanelApp().run()
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.