Skip to content

Instantly share code, notes, and snippets.

@kived
Created August 7, 2014 21:44
Show Gist options
  • Save kived/925dee781a661c174841 to your computer and use it in GitHub Desktop.
Save kived/925dee781a661c174841 to your computer and use it in GitHub Desktop.
scatter
import kivy
kivy.require('1.8.0')
from kivy.app import App
from kivy.lang import Builder
root = Builder.load_string('''
BoxLayout:
orientation: 'vertical'
Label:
text: 'test'
size_hint_y: None
height: self.texture_size[1]
ScrollView:
FloatLayout:
size_hint_y: 1.5
Scatter:
size_hint: None, None
size: 300, 300
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
rotation: 45
TextInput:
id: ti
text: 'hi\\n'
''')
class TestApp(App):
def build(self):
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