Skip to content

Instantly share code, notes, and snippets.

View abhijangda's full-sized avatar

Abhinav Jangda abhijangda

View GitHub Profile
#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
There will be following classes with their parent classes and
the methods they will support
class MenuBar (BoxLayout):
# This is a BoxLayout with horizontal orientation
def add_widget (self, menu_item, index=0):
"""To add a MenuItem to MenuBar. This function will first check
whether menu_item is a MenuItem or any other Widget"""
'''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.
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
#: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.)
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
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.
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
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