Skip to content

Instantly share code, notes, and snippets.

@kived
Created May 8, 2015 20:39
Show Gist options
  • Save kived/f6e4732bf748cd5982ed to your computer and use it in GitHub Desktop.
Save kived/f6e4732bf748cd5982ed to your computer and use it in GitHub Desktop.
Kivy: multi-line text
import kivy
kivy.require('1.9.0')
from kivy.app import App
from kivy.lang import Builder
root = Builder.load_string('''
Label:
text:
"""hello there.
this is some text
and it spans multiple lines"""
''')
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