1. Dusty Phillips
  2. kivy-catalog

Commits

Dusty Phillips  committed ad71d4c

Add the last layout.

  • Participants
  • Parent commits c180513
  • Branches master

Comments (0)

Files changed (2)

File container_kvs/StackLayoutContainer.kv

View file
  • Ignore whitespace
+#:kivy 1.4
+
+StackLayout:
+    orientation: 'tb-lr'
+    padding: 10
+    spacing: 5
+    Button:
+        text: "Button 1"
+        size_hint: .2, .5
+        width: 100
+    Button:
+        text: "Button 2"
+        size_hint: .2, .5
+    Button:
+        text: "Button 3"
+        size_hint: .2, .5
+    Button:
+        text: "Button 4"
+        size_hint: .2, .5
+    Button:
+        text: "Button 5"
+        size_hint: .2, .5
+    Button:
+        text: "Button 6"
+        size_hint: .2, .5
+

File kivycatalog.kv

View file
  • Ignore whitespace
                     GridLayoutContainer:
                         id: gridlayoutcontainer
                 AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "StackLayout"
+                    kv_container: stacklayoutcontainer
+                    StackLayoutContainer:
+                        id: stacklayoutcontainer
+                AccordionItem:
                     title: "Introduction"
                     Label:
                         text_size: self.width-200, None