Skip to content

Instantly share code, notes, and snippets.

View gottadiveintopython's full-sized avatar

水戸う納豆齋(Nattōsai Mitō) gottadiveintopython

View GitHub Profile
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
#:import A kivy.animation.Animation
<AutoScaleLabel@Label>:
scale: 1
@salt-die
salt-die / wobblywidget.py
Last active June 21, 2020 19:42
Make any widget wobble with wobbly widget!
"""For this to work, WobblyEffect should be parent to WobblyScatter.
"""
from kivy.clock import Clock
from kivy.uix.effectwidget import AdvancedEffectBase, EffectWidget
from kivy.uix.scatter import Scatter
from itertools import product
FRICTION = .95
K = 8