1. quanon
  2. kivy-catalog

Commits

Dusty Phillips  committed 74e6e72

Add a tab illustrating progress bar and slider

  • Participants
  • Parent commits 73326d4
  • Branches master

Comments (0)

Files changed (2)

File container_kvs/ProgressBarContainer.kv

View file
+#:kivy 1.4
+
+BoxLayout:
+    orientation: 'vertical'
+    padding: 50
+    ProgressBar:
+        id: bar
+        value: 140
+        max: 300
+    Slider:
+        max: 200
+        value: 140
+        on_value: bar.value = self.value

File kivycatalog.kv

View file
                         id: labelcontainer
                 AccordionItem:
                     on_collapse: root.show_kv(*args)
-                    title: "Checkboxes"
+                    title: "Booleans"
                     kv_container: checkboxcontainer
                     CheckBoxContainer:
                         id: checkboxcontainer
+                AccordionItem:
+                    on_collapse: root.show_kv(*args)
+                    title: "Progress Bar"
+                    kv_container: progressbarcontainer
+                    ProgressBarContainer:
+                        id: progressbarcontainer
 
         BoxLayout:
             id: bl