Created
August 7, 2014 21:44
-
-
Save kived/925dee781a661c174841 to your computer and use it in GitHub Desktop.
scatter
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 | |
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