Created
September 9, 2014 21:36
-
-
Save kived/31e467b831edddc96247 to your computer and use it in GitHub Desktop.
tabbed panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kivy | |
kivy.require('1.8.0') | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.tabbedpanel import TabbedPanelItem | |
root = Builder.load_string(''' | |
BoxLayout: | |
TabbedPanel: | |
id: tabpanel | |
''') | |
class TestApp(App): | |
def build(self): | |
root.ids.tabpanel.add_widget(TabbedPanelItem(text='hello')) | |
return root | |
if __name__ == '__main__': | |
TestApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment