Source

kivy-catalog / kivycatalog.kv

Dusty Phillips 2b6e69a 


Dusty Phillips 5b2091a 


Dusty Phillips 71cf7f4 
Dusty Phillips 5b2091a 




Dusty Phillips 2b6e69a 
Dusty Phillips b6af083 
Dusty Phillips 5b2091a 
Dusty Phillips b6af083 











Dusty Phillips 9b271f9 
Dusty Phillips 5b2091a 


Dusty Phillips 9b271f9 
Dusty Phillips b5021c9 



Dusty Phillips 901ad48 



Dusty Phillips 5b2091a 


Dusty Phillips 92880b0 
Dusty Phillips 3ce3f3e 





Dusty Phillips 5b2091a 
Dusty Phillips 71cf7f4 
Dusty Phillips 5b2091a 
Dusty Phillips 71cf7f4 
Dusty Phillips 5b2091a 
Dusty Phillips c4381bb 





Dusty Phillips a2180e8 





Dusty Phillips ad71d4c 




Dusty Phillips b5021c9 







Dusty Phillips 91f2ce8 





Dusty Phillips 3014689 

Dusty Phillips 74e6e72 
Dusty Phillips 3014689 


Dusty Phillips 74e6e72 





Dusty Phillips 12e5e9e 





Dusty Phillips 6e7df12 





Dusty Phillips 901ad48 













Dusty Phillips b1326f5 





Dusty Phillips 437dda9 





Dusty Phillips d55399e 





Dusty Phillips 71cf7f4 



Dusty Phillips 5b2091a 
Dusty Phillips 8e6d499 
Dusty Phillips 71cf7f4 
Dusty Phillips c180513 
Dusty Phillips 71cf7f4 





Dusty Phillips db7c1b2 
Dusty Phillips b5023be 
Dusty Phillips 71cf7f4 
#:kivy 1.4


<Catalog>:
    language_box: language_box
    BoxLayout:
        spacing: 5
        TabbedPanel:
            size_hint: .6, 1
            tab_pos: "left_top"
            default_tab_text: "Introduction"
            default_tab_content: introduction_tab

            Accordion:
                id: introduction_tab
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Playground"
                    kv_container: playground
                    PlaygroundContainer:
                        id: playground
                AccordionItem:
                    title: "Welcome"
                    Label:
                        text_size: self.width-60, self.height-60
                        valign: "middle"
                        text: "The Kivy Catalog is an interactive showcase of Kivy Widgets defined in the Kivy language. For each widget you see, you can directly edit the .kv language syntax to see what effects your changes have on the widget.\n\nThis code is still in pretty alpha state. Most widgets haven't been represented yet. But it does seem to work. If you feel like adding widgets to the showcase, pull requests are welcome!"

            TabbedPanelHeader:
                text: 'Layouts'
                content: layout_tab

            TabbedPanelHeader:
                text: 'UX Widgets'
                content: basic_widgets

            TabbedPanelHeader:
                text: 'Complex'
                content: complex_widgets

            Accordion:
                id: layout_tab
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "FloatLayout"
                    kv_container: floatlayoutcontainer
                    FloatLayoutContainer:
                        id: floatlayoutcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "BoxLayout"
                    kv_container: boxlayoutcontainer
                    BoxLayoutContainer:
                        id: boxlayoutcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "AnchorLayout"
                    kv_container: anchorlayoutcontainer
                    AnchorLayoutContainer:
                        id: anchorlayoutcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "GridLayout"
                    kv_container: gridlayoutcontainer
                    GridLayoutContainer:
                        id: gridlayoutcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "StackLayout"
                    kv_container: stacklayoutcontainer
                    StackLayoutContainer:
                        id: stacklayoutcontainer
            Accordion:
                id: basic_widgets
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Buttons"
                    kv_container: buttoncontainer
                    ButtonContainer:
                        id: buttoncontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Labels"
                    kv_container: labelcontainer
                    LabelContainer:
                        id: labelcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Booleans"
                    kv_container: checkboxcontainer
                    CheckBoxContainer:
                        id: checkboxcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Progress Bar"
                    kv_container: progressbarcontainer
                    ProgressBarContainer:
                        id: progressbarcontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Media"
                    kv_container: mediacontainer
                    MediaContainer:
                        id: mediacontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Text"
                    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
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "FileChoosers"
                    kv_container: filechoosercontainer
                    FileChooserContainer:
                        id: filechoosercontainer
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "Scatter"
                    kv_container: scatter
                    ScatterContainer:
                        id: scatter
                AccordionItem:
                    on_collapse: root.show_kv(*args)
                    title: "ReST"
                    kv_container: rest
                    RestContainer:
                        id: rest

        BoxLayout:
            id: bl
            orientation: "vertical"
            size_hint: .4, 1
            TextInput:
                text_size: self.width-20, self.height-20
                font_name: "DroidSansMono.ttf"
                valign: "top"
                id: language_box
                text: "This box will display the kivy language for whatever has been selected"
            Button:
                size_hint: 1, None
                height: 50
                text: "Render"
                on_press: root.change_kv(*args)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.