Commits

Dusty Phillips committed 901ad48

start adding complex widgets but it's not going well

  • Participants
  • Parent commits 881a5c2

Comments (0)

Files changed (3)

File container_kvs/PopupContainer.kv

+#:kivy 1.4
+
+BoxLayout:
+    orientation: "vertical"
+    Bubble:
+        size_hint: (None, None)
+        size: (150, 50)
+        pos_hint: {'center_x': .5, 'y': .6}
+        arrow_pos: 'bottom_mid'
+        orientation: 'horizontal'
+        BubbleButton:
+            text: 'Click'
+        BubbleButton:
+            text: 'A'
+        BubbleButton:
+            text: 'Bubble'
+    Popup:
+        id: popup
+        title: "An example popup"
+        content: popupcontent
+        Label:
+            id: popupcontent
+            text: "Some text\nin the popup"

File container_kvs/SelectorsContainer.kv

+#:kivy 1.4
+
+BoxLayout:
+    orientation: 'vertical'
+    Spinner:
+        text: "Work"
+        values: "Work", "Home", "Mobile", "Skype"
+        size_hint: (None, None)
+        size: (100, 44)
+    # Wanted to put DropDown here, too, but it seems not to be working too well when loaded from .kv
+

File kivycatalog.kv

                 text: 'UX Widgets'
                 content: basic_widgets
 
+            TabbedPanelHeader:
+                text: 'Complex'
+                content: complex_widgets
+
             Accordion:
                 id: layout_tab
                 AccordionItem:
                     kv_container: textcontainer
                     TextContainer:
                         id: textcontainer
+            Accordion:
+                id: complex_widgets
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Popups"
+                    kv_container: popupcontainer
+                    PopupContainer:
+                        id: popupcontainer
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Selectors"
+                    kv_container: selectorscontainer
+                    SelectorsContainer:
+                        id: selectorscontainer
 
         BoxLayout:
             id: bl