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
>> FAIL WITH 8930161ac7793fdb7b9f29d0403b89d0ed9cddf9 | |
<FabreDescriptionPart>: | |
font_size: 18 | |
font_name: "data/fonts/Optima Medium.ttf" | |
size_hint_y: None | |
text_size: self.width, None | |
height: self.texture_size[1] | |
halign: "left" | |
markup: True |
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
""" | |
MJpeg Viewer using pure Kivy + urllib | |
===================================== | |
.. author:: Mathieu Virbel <[email protected]> | |
""" | |
import io | |
import urllib | |
import threading |
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
#!/usr/bin/kivy | |
import kivy | |
kivy.require('1.0.6') | |
from glob import glob | |
from random import randint | |
from os.path import join, dirname | |
from kivy.app import App | |
from kivy.logger import Logger |
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.uix.button import Button | |
from kivy.uix.label import Label | |
from kivy.uix.floatlayout import FloatLayout | |
from kivy.lang import Builder, global_idmap | |
from kivy.event import EventDispatcher | |
from kivy.properties import StringProperty | |
from kivy.app import App | |
Builder.load_string(""" |
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
[app] | |
# (str) Title of your application | |
title = _recycleview | |
# (str) Package name | |
package.name = recycleview | |
# (str) Package domain (needed for android/ios packaging) | |
package.domain = org.kivy |
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.uix.image import Image | |
from kivy.uix.properties import AliasProperty | |
Builder.load_string(""" | |
<-CoverImage>: | |
canvas.before: | |
Color: | |
rgba: self.color | |
Rectangle: |
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 pyobjus import autoclass | |
from pyobjus.dylib_manager import load_framework, INCLUDE | |
import sys | |
load_framework(INCLUDE.AVFoundation) | |
AVAudioPlayer = autoclass("AVAudioPlayer") | |
NSURL = autoclass("NSURL") | |
NSString = autoclass("NSString") | |
fn = NSString.alloc().initWithUTF8String_(sys.argv[1]) |
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 time | |
def timeit(method): | |
def timed(*args, **kw): | |
ts = time.time() | |
result = method(*args, **kw) | |
te = time.time() | |
print '%r (%r, %r) %2.2f sec' % \ |
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
# subclass for touch event in unit test | |
class UTMotionEvent(MotionEvent): | |
def depack(self, args): | |
self.is_touch = True | |
self.sx = args['x'] | |
self.sy = args['y'] | |
self.profile = ['pos'] | |
super(UTMotionEvent, self).depack(args) | |
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
#!/usr/bin/env python | |
from os.path import join, basename, realpath | |
import sh | |
# ensure we start from a clean git | |
git_status = sh.git.status("--porcelain") | |
if list(git_status): | |
print "UNCOMMITED CHANGES ----" | |
print git_status |