Skip to content

Instantly share code, notes, and snippets.

View seaddervishi's full-sized avatar

Sead Dervishi seaddervishi

View GitHub Profile
@tshirtman
tshirtman / mah_button.py
Created September 30, 2013 17:42
usage demonstration of ids, dynamic classes/Factory, and doing a default binding using them, plus ScreenManager
'''
Little demonstration of various kivy useful features:
- loading kv code
- adding dynamic parts to static parts using ids
- dynamic classes
- getting a reference to a Dynamic classes using Factory
- binding events to python expressions on kv side
useful references:
- http://kivy.org/docs/guide/lang.html#referencing-widgets