Metadata-Version: 2.1
Name: layoutmargin
Version: 20190911
Summary: Mixins that adds margin functionality to Kivy widgets
Home-page: https://github.com/AndreMiras/garden.layoutmargin
Author: Andre Miras
License: UNKNOWN
Description: # garden.layoutmargin
        
        [![Build Status](https://travis-ci.com/AndreMiras/garden.layoutmargin.svg?branch=develop)](https://travis-ci.com/AndreMiras/garden.layoutmargin)
        [![PyPI version](https://badge.fury.io/py/layoutmargin.svg)](https://badge.fury.io/py/layoutmargin)
        
        A set of mixins (`MarginLayout`, `AddMargin`) that adds `margin` functionality to Kivy widgets.  
        
        
        ![demo](http://i.imgur.com/4cCZL3t.gif)
        
        
        ## How to use
        
        ### @ `.py` subclasses:
        ```python
        from layoutmargin import AddMargin, MarginLayout
        
        
        class MarginBoxLayout(MarginLayout, BoxLayout):
            pass
        
            
        class MarginButton(AddMargin, Button):
            pass
        ```
        
        
        ### @ `.kv` layout:
        ```yaml
        MarginBoxLayout:
            
            MarginButton:
                margin: (30, 10, 30, 10) # integer / float
              
            MarginButton:
                margin: ("10%", "10%", "10%", "10%") # percentage of total widget size
              
            MarginButton:
                margin: (30, "10%", 30, "10%") # mixed
        ```
        
        ## Run the demo
        ```
        make run
        ```
        
        ## Install
        ```sh
        pip install layoutmargin
        ```
        
        ## Credits
        Forked from [Enteleform/-Kivy-MarginLayout-Demo](https://github.com/Enteleform/-Kivy-MarginLayout-Demo).
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
