Skip to content

Instantly share code, notes, and snippets.

@kived
Created March 26, 2015 19:51
Show Gist options
  • Save kived/1aa63cbe0a811f9756dc to your computer and use it in GitHub Desktop.
Save kived/1aa63cbe0a811f9756dc to your computer and use it in GitHub Desktop.
Kivy: line continuations
import kivy
kivy.require('1.8.1')
from kivy.app import App
from kivy.lang import Builder
root = Builder.load_string('''
Button:
text:
'hello'\\
'dude'
on_press:
self.text = \\
'bye'
''')
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