Created
May 26, 2015 18:00
-
-
Save kived/7d8c5d9330b3b44fe53a to your computer and use it in GitHub Desktop.
Kivy: Splitter example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kivy | |
kivy.require('1.8.1') | |
from kivy.app import App | |
from kivy.lang import Builder | |
root = Builder.load_string(''' | |
BoxLayout: | |
orientation: 'vertical' | |
Splitter: | |
sizable_from: 'bottom' | |
Button: | |
text: 'something2' | |
BoxLayout: | |
Splitter: | |
sizable_from: 'right' | |
Button: | |
text: 'something1' | |
Label: | |
text: 'empty area' | |
Splitter: | |
sizable_from: 'top' | |
Button: | |
text: 'something3' | |
''') | |
class TestApp(App): | |
def build(self): | |
return root | |
if __name__ == '__main__': | |
TestApp().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment