Commits

Dusty Phillips committed a2180e8

Grid Layout Example. (needs work)

Comments (0)

Files changed (2)

container_kvs/GridLayoutContainer.kv

+#:kivy 1.4
+
+GridLayout:
+    cols: 2
+    Button:
+        text: "Button 1"
+        size_hint_x: None
+        width: 100
+    Button:
+        text: "Button 2"
+    Button:
+        text: "Button 3"
+        size_hint_x: None
+    Button:
+        text: "Button 4"
+    Button:
+        text: "Button 5"
+    Button:
+        text: "Button 6"
+        size_hint_x: None
+
                     AnchorLayoutContainer:
                         id: anchorlayoutcontainer
                 AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "GridLayout"
+                    kv_container: gridlayoutcontainer
+                    GridLayoutContainer:
+                        id: gridlayoutcontainer
+                AccordionItem:
                     title: "Introduction"
                     Label:
                         text_size: self.width-200, None