Table Of Contents
Support¶
Activate other frameworks/toolkits inside the kivy event loop.
-
kivy.support.
install_gobject_iteration
()[source]¶ Import and install gobject context iteration inside our event loop. This is used as soon as gobject is used (like gstreamer).
-
kivy.support.
install_twisted_reactor
(**kwargs)[source]¶ Installs a threaded twisted reactor, which will schedule one reactor iteration before the next frame only when twisted needs to do some work.
Any arguments or keyword arguments passed to this function will be passed on the the threadedselect reactors interleave function. These are the arguments one would usually pass to twisted’s reactor.startRunning.
Unlike the default twisted reactor, the installed reactor will not handle any signals unless you set the ‘installSignalHandlers’ keyword argument to 1 explicitly. This is done to allow kivy to handle the signals as usual unless you specifically want the twisted reactor to handle the signals (e.g. SIGINT).
Note
Twisted is not included in iOS build by default. To use it on iOS, put the twisted distribution (and zope.interface dependency) in your application directory.
-
kivy.support.
uninstall_twisted_reactor
()[source]¶ Uninstalls the Kivy’s threaded Twisted Reactor. No more Twisted tasks will run after this got called. Use this to clean the twisted.internet.reactor .
New in version 1.9.0.
-
kivy.support.
install_android
()[source]¶ Install hooks for the android platform.
Automatically sleep when the device is paused.
Automatically kill the application when the return key is pressed.