1. quanon
  2. kivy-catalog

Commits

Dusty Phillips  committed 3014689

Checkbox example

  • Participants
  • Parent commits 91f2ce8
  • Branches master

Comments (0)

Files changed (2)

File container_kvs/CheckBoxContainer.kv

View file
  • Ignore whitespace
+#:kivy 1.4
+
+GridLayout:
+    cols: 2
+    CheckBox:
+    Label:
+        text: "A checkbox"
+    CheckBox:
+    Label:
+        text: "Another checkbox"
+    CheckBox:
+        group: "money"
+    Label:
+        text: "A radio"
+    CheckBox:
+        group: "money"
+    Label:
+        text: "Another radio in same group"

File kivycatalog.kv

View file
  • Ignore whitespace
                     kv_container: labelcontainer
                     LabelContainer:
                         id: labelcontainer
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Checkboxes"
+                    kv_container: checkboxcontainer
+                    CheckBoxContainer:
+                        id: checkboxcontainer
 
         BoxLayout:
             id: bl