Skip to content

Instantly share code, notes, and snippets.

View tito's full-sized avatar

Mathieu Virbel tito

View GitHub Profile
''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'.
The filters to be applied to the files in the directory.
The filters are not reset when the path changes. You need to do that
yourself if desired.
There are two kinds of filters :
filename patterns : e.g. ['\*.png'].
You can use the following patterns:
import kivy
kivy.require('1.0.7')
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ListProperty
from kivy.lang import Builder
Builder.load_string('''
@tito
tito / test.py
Created May 3, 2012 22:38 — forked from tshirtman/test.py
#!/usr/bin/env python
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty, NumericProperty
from kivy.lang import Builder
Builder.load_string('''
<ArrowPointer>:
canvas:
Color:
# ================================================================================
# Project: Kivy.Statechart - A Statechart Framework for Kivy
# Copyright: ©2010, 2011 Michael Cohen, and contributors.
# Python Port: Jeff Pittman, ported from SproutCore, SC.Statechart
# ================================================================================
from kivy.statechart.system.state import State
from kivy.statechart.mixins.statechart_delegate import StatechartDelegate
from kivy.properties import AliasProperty
from kivy.logger import Logger
class ConnectionButton(MTWidget):
instances = []
def __init__(self, **kwargs):
super().__init__(**kwargs)
ConnectionButton.instances.append(self)
def on_touch_down(self, touch):
if not self.collide_point(*touch.pos):
return