Commits

Dusty Phillips committed b5021c9

Add some buttons

Comments (0)

Files changed (2)

container_kvs/ButtonContainer.kv

+#:kivy 1.4
+
+GridLayout:
+    rows: 2
+    Button:
+        text: "Button 1"
+    Button:
+        text: "Button 2"
+        font_size: 24
+    Button:
+        text: "Button 3"
+        background_color: .7, .7, 1, 1
+    Button:
+        text: "Button 4"
+        border: 32, 32, 32, 32
+
                 text: 'Layouts'
                 content: layout_tab
 
+            TabbedPanelHeader:
+                text: 'UX Widgets'
+                content: basic_widgets
+
             Accordion:
                 id: layout_tab
                 AccordionItem:
                         text_size: self.width-200, None
                         markup: True
                         text: '''Layouts are containers that automatically position their child widgets according to certain layout rules.\n\n[b]Anchor Layout[/b] aligns children to a border\n[b]Box Layout[/b] arranges children in a vertical or horizontal box.\n[b]Float layout[/b] places boxes according to their pos and size hints\n[b]Grid layout[/b] arranges the children in a matrix\n[b]Stack layout[/b] arranges children vertically or horizontally as far as they will fit.'''
+            Accordion:
+                id: basic_widgets
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Buttons"
+                    kv_container: buttoncontainer
+                    ButtonContainer:
+                        id: buttoncontainer
 
         BoxLayout:
             id: bl