Table Of Contents
Weak Method¶
The WeakMethod is used in the Clock class to allow a reference to a bound method that permits the associated object to be garbage collected. Check examples/core/clock_method.py for more information.
This WeakMethod class is taken from the recipe http://code.activestate.com/recipes/81253/, based on the nicodemus version. (thanks to him !)
- class kivy.weakmethod.WeakMethod(method)[source]¶
Bases: object
Implementation of a weakref for functions and bound methods.