<commit_before># Resizable Behavior

A behavior for kivy widgets that allows them to be resized by touching/clickin on a corner and dragging.    
     
     
[Youtube demostration video](https://www.youtube.com/watch?v=n9v36gHA-Ps)     
      
      
Below is also a **screenshot of the included resizable widget application**.     
     
     
![ScreenShot](https://raw.github.com/kivy-garden/garden.resizable_behavior/master/doc/screenshot.png)

## Usage    

Import and inherit like any other kivy behavior
```python
from kivy.garden.resizable_behavior import ResizableBehavior
from kivy.uix.Button import Button

class ResizableButton(ResizableBehavior, Button):
    pass
```

Enable / disable resizing of a specific side
```python
res_button.resizable_left = False
res_button.resizable_right = True
res_button.resizable_up = False
res_button.resizable_down = True
```

Lock / unlock resizing
```python
res_button.resize_lock = True
```
    
Adjust the size of resizable border in kwargs or after
```python
res_button = ResizableButton(resizable_border=8999)
res_button.resizable_border = 100
```

Offset the resizable_border (by default it is inside the widget) in kwargs or after     
```python
#A value of resizable_border * 0.5 will center it on the edge of the ResizableButton

res_button = ResizableButton(resizable_border_offset=res_button.resizable_border * 0.5)
res_button.resizable_border_offset = res_button.resizable_border * 0.5
```

Set min and max sizes in kwargs or after     
```python
res_button.min_resizable_width = 100<commit_msg>Added more kwargs examples in README<commit_after># Resizable Behavior

A behavior for kivy widgets that allows them to be resized by touching/clickin on a corner and dragging.    
     
     
[Youtube demostration video](https://www.youtube.com/watch?v=n9v36gHA-Ps)     
      
      
Below is also a **screenshot of the included resizable widget application**.     
     
     
![ScreenShot](https://raw.github.com/kivy-garden/garden.resizable_behavior/master/doc/screenshot.png)

## Usage    

Import and inherit like any other kivy behavior
```python
from kivy.garden.resizable_behavior import ResizableBehavior
from kivy.uix.Button import Button

class ResizableButton(ResizableBehavior, Button):
    pass
```

Enable / disable resizing of a specific side in kwargs or after
```python
res_button = ResizableButton(
    resizable_left=False
    resizable_right=True
    resizable_up = False
    resizable_down = True)

res_button.resizable_left = False
res_button.resizable_right = True
res_button.resizable_up = False
res_button.resizable_down = True
```

Lock / unlock resizing
```python
res_button.resize_lock = True
```
    
Adjust the size of resizable border in kwargs or after
```python
res_button = ResizableButton(resizable_border=8999)

res_button.resizable_border = 100
```

Offset the resizable_border (by default it is inside the widget) in kwargs or after     
```python
#A value of resizable_border * 0.5 will center it on the edge of the ResizableButton

res_button = ResizableButton(resizable_border_offset=res_button.resizable_border * 0.5)

res_button.resizable_border_offset = res_button.resizable_border * 0.5
```

Set min and max sizes in kwargs or after     
```python
res_button = ResizableButton(
    min_resizable_width = 100
    min_resizable_height = 101
    max_resizable_width = 102
    max_resizable_height = 103)
    
res_button.min_resizable_width = 100
{'fraction_non_alphanumeric': 0.0748911465892598, 'fraction_numerical': 0.01451378809869376, 'mean_word_length': 4.317901234567901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4239063', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1055, 'n_words': 310}