Commits

Dusty Phillips  committed 6e7df12

add a tab for displaying text

  • Participants
  • Parent commits 12e5e9e

Comments (0)

Files changed (2)

File container_kvs/TextContainer.kv

+#:kivy 1.4
+
+BoxLayout:
+    orientation: "vertical"
+    TextInput:
+        text: "Single Line Input"
+        multiline: False
+    TextInput:
+        text: "Focused Text Input, start typing here\nmultiline\nsupport"
+        background_color: .8, .8, 0, 1
+        size_hint: 1, 3
+    TextInput:
+        text: "Password (but you can't see it)"
+        password: True
+        multiline: False
+        on_text: viewer.text = self.text
+    TextInput:
+        id: viewer
+        read_only: True
+        text: "edit the password to see it here"
+

File kivycatalog.kv

                     kv_container: mediacontainer
                     MediaContainer:
                         id: mediacontainer
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Text"
+                    kv_container: textcontainer
+                    TextContainer:
+                        id: textcontainer
 
         BoxLayout:
             id: bl