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
| #May be let we are having a property of setting appearance of Slider. | |
| #Somewhere the Slider is setted | |
| Slider: | |
| id: slider_1 | |
| Appearance: #set image appearance | |
| Slider: | |
| id: slider_2 | |
| Appearance: #Simple appearance |
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
| '''Each ActionBar will have only one ActionView and many ContextualActionView. | |
| ActionView has its own title, icon and up_icon properties. ActionView will emit | |
| on_previous event whenever icon and up_icon ActionItems are clicked. ActionView | |
| will have its own ActionItems, which can be ActionItemButton, | |
| ActionItemToggleButton, ActionItemCheck and ActionItemSeparator. If ActionView's | |
| use_separator is set to True, then there will be a ActionItemSeparator after | |
| every ActionItem. If user wants to manually, add an ActionItemSeparator then he | |
| should set use_separator to False. ActionView has overflow_icon property to set | |
| icon to be used for ActionView's overflow_action_item. | |
| ActionGroup contains ActionItems. |
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
| Traceback (most recent call last): | |
| File "/home/abhi/kivy_repo/actionbar.py", line 599, in <module> | |
| float_layout = MainWindow() | |
| File "/home/abhi/kivy_repo/kivy/kivy/uix/floatlayout.py", line 66, in __init__ | |
| super(FloatLayout, self).__init__(**kwargs) | |
| File "/home/abhi/kivy_repo/kivy/kivy/uix/layout.py", line 61, in __init__ | |
| super(Layout, self).__init__(**kwargs) | |
| File "/home/abhi/kivy_repo/kivy/kivy/uix/widget.py", line 146, in __init__ | |
| Builder.apply(self) | |
| File "/home/abhi/kivy_repo/kivy/kivy/lang.py", line 1412, in apply |
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
| #:kivy 1.0 | |
| <Label>: | |
| canvas: | |
| Color: | |
| rgba: self.disabled_color if self.disabled else (self.color if not self.markup else (1, 1, 1, 1)) | |
| Rectangle: | |
| texture: self.texture | |
| size: self.texture_size | |
| pos: int(self.center_x - self.texture_size[0] / 2.), int(self.center_y - self.texture_size[1] / 2.) |
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
| commit ffaafdcdbeb08065e8adc79d22de2d9a18658a39 | |
| Author: Abhinav <abhijangda@hotmail.com> | |
| Date: Wed Jun 5 13:19:03 2013 +0530 | |
| Added Spinner widget's kv lang to style.kv | |
| commit df255af226943d25f631e045d4fb639b8f3f080a | |
| Merge: b1461f7 7b87ae8 | |
| Author: qua-non <akshayaurora@gmail.com> | |
| Date: Tue May 28 04:16:37 2013 -0700 |
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
| setup.py:158:1: E302 expected 2 blank lines, found 1 | |
| setup.py:194:1: E302 expected 2 blank lines, found 1 | |
| setup.py:208:81: E501 line too long (87 > 80 characters) | |
| setup.py:213:1: E302 expected 2 blank lines, found 1 | |
| setup.py:250:1: E302 expected 2 blank lines, found 1 | |
| setup.py:295:1: E302 expected 2 blank lines, found 1 | |
| Error: 6 styleguide violation(s) encountered! | |
| Your commit has been aborted. Please fix the violations and retry. |
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.app import App | |
| from kivy.uix.floatlayout import FloatLayout | |
| from kivy.properties import ObjectProperty | |
| from kivy.lang import Builder | |
| from kivy.uix import actionbar | |
| Builder.load_string(''' | |
| <RootWidget>: | |
| action_bar: _action | |
| carousel: carousel |
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
| When user will select the kv file to open, | |
| then all the root widgets(as they will be the custom widgets) will come in the Toolbox. | |
| These root widgets will also be displayed by the playground. | |
| Each root widget will have its own playground where user can edit it. | |
| To display these root widgets what we can do is: | |
| 1. Have a Tab Widget which will contain each playground for each root widget. | |
| 2. Have a Tab Widget containing individual Toolbox, Playground, | |
| WidgetTree, StatusBar and PropertyViewer for each root widget |
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
| import kivy | |
| import re | |
| import os, sys, imp, inspect | |
| from kivy.app import App | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.floatlayout import FloatLayout | |
| from kivy.uix.button import Button | |
| from kivy.base import runTouchApp | |
| from kivy.factory import Factory | |
| from kivy.properties import ObjectProperty |
OlderNewer