Commits

Dusty Phillips committed 8e6d499

Allow editing of .kv file and render.

  • Participants
  • Parent commits 8c7428d

Comments (0)

Files changed (2)

File kivycatalog.kv

             id: bl
             orientation: "vertical"
             size_hint: .4, 1
-            Label:
+            TextInput:
                 text_size: self.width-20, self.height-20
                 valign: "top"
                 id: language_box
     def change_kv(self, object, event):
         if self.kv_container:
             self.kv_container.clear_widgets()
-            new_content = """#:kivy 1.4
-
-BoxLayout:
-    orientation: 'vertical'
-    padding: 20
-    spacing: 10
-    Button:
-        text: "EVERYBODY"
-    Button:
-        text: "LIKES"
-    Button:
-        text: "YOU"
-"""
-            parser = Parser(content=new_content)
+            parser = Parser(content=self.language_box.text)
             Builder._apply_rule(self.kv_container, parser.root, parser.root)