Created
June 6, 2018 19:53
-
-
Save inclement/fccb061b9a16e2f8f1ac68dc17658fd9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from kivy.lang import Builder | |
| from kivy.base import runTouchApp | |
| root = Builder.load_string(''' | |
| BoxLayout: | |
| orientation: 'vertical' | |
| CheckBox: | |
| color: r.value, g.value, b.value, a.value | |
| Slider: | |
| id: r | |
| size_hint_y: None | |
| height: dp(40) | |
| min: 0 | |
| max: 1 | |
| value: 1 | |
| Slider: | |
| id: g | |
| size_hint_y: None | |
| height: dp(40) | |
| min: 0 | |
| max: 1 | |
| value: 1 | |
| Slider: | |
| id: b | |
| size_hint_y: None | |
| height: dp(40) | |
| min: 0 | |
| max: 1 | |
| value: 1 | |
| Slider: | |
| id: a | |
| size_hint_y: None | |
| height: dp(40) | |
| min: 0 | |
| max: 1 | |
| value: 1 | |
| ''') | |
| runTouchApp(root) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment