Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- Created on Mon Jun 29 14:13:29 2015
- @author: robert
- """
- import kivy
- from kivy.app import App
- from kivy.lang import Builder
- root = Builder.load_string('''
- AnchorLayout:
- anchor_x: 'left'
- StackLayout:
- orientation: 'lr-tb'
- size_hint: None, None
- height: self.minimum_height
- width: 1
- Label:
- size_hint: None, None
- width: self.texture_size[0] + dp(12)
- height: self.texture_size[1] + dp(12)
- text: 'Hello, this is a long message here'
- Label:
- size_hint: None, None
- width: self.texture_size[0] + dp(12)
- height: self.texture_size[1] + dp(12)
- text: 'Hello world'
- Widget:
- size_hint_y: None
- height: dp(12)
- Label:
- size_hint: None, None
- width: self.texture_size[0] + dp(12)
- height: self.texture_size[1] + dp(12)
- text: 'Bye'
- ''')
- class TestApp(App):
- def build(self):
- return root
- if __name__ == '__main__':
- TestApp().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement