I hereby claim:
- I am kived on github.
- I am kived (https://keybase.io/kived) on keybase.
- I have a public key whose fingerprint is 6458 4CE3 77A6 448B ED5D 4B5D D5A4 A93E 959E 091A
To claim this, I am signing this object:
import kivy | |
kivy.require('1.9.1') | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.effectwidget import EffectWidget, PixelateEffect | |
from kivy.properties import StringProperty | |
class PixelLabel(EffectWidget): |
I hereby claim:
To claim this, I am signing this object:
def my_function(): | |
res1 = do_long_stuff_one() | |
res2 = do_long_stuff_two(res1) | |
return res2 | |
@defer.inlineCallbacks | |
def my_function(): | |
res1 = yield do_long_stuff_one() | |
res2 = yield do_long_stuff_two(res1) | |
defer.returnValue(res2) |
import kivy | |
kivy.require('1.9.0') | |
from kivy.app import App | |
from kivy.lang import Builder | |
import webbrowser | |
root = Builder.load_string(''' | |
Button: | |
text: 'Press Me!' |
class SizedLabel(Label): | |
max_lines = BoundedNumericProperty(3, min=1) | |
sizetext = StringProperty('') | |
auto_wrap = BooleanProperty(True) | |
auto_height = BooleanProperty(False) | |
outline_color = ListProperty([0.0] * 4) | |
line_threshold = ListProperty((36, 80, 124,)) | |
resize_text = BooleanProperty(True) | |
resize_text_down_only = BooleanProperty(False) | |
import kivy | |
kivy.require('1.9.0') | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy.clock import Clock | |
root = Builder.load_string(''' | |
FloatLayout: |
Widget: | |
canvas: | |
Color: | |
rgba: 0, 0, 0, 1 | |
Line: | |
rectangle: self.x, self.y, self.right, self.top |
from kivy.event import EventDispatcher | |
from kivy.clock import Clock | |
from functools import partial | |
class trigger(object): | |
"""Make a trigger from a method outside of your class's __init__.""" | |
def __init__(self, func_or_timeout): | |
if callable(func_or_timeout): | |
self.func = func_or_timeout |
from kivy.app import App | |
from kivy.lang import Builder | |
root = Builder.load_string(''' | |
<ScaleLabel@Label>: | |
_scale: 1. if self.texture_size[0] < self.width else float(self.width) / self.texture_size[0] | |
canvas.before: | |
PushMatrix | |
Scale: | |
origin: self.center |
[app] | |
# (str) Title of your application | |
title = Audio Stream Test | |
# (str) Package name | |
package.name = audiostreamtest | |
# (str) Package domain (needed for android/ios packaging) | |
package.domain = org.kivy |