Quick search

Table Of Contents

Support

Activate other frameworks/toolkits inside the kivy event loop.

kivy.support.install_gobject_iteration()[ソース]

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)[ソース]

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).

注釈

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()[ソース]

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 .

バージョン 1.9.0 で追加.

kivy.support.install_android()[ソース]

Install hooks for the android platform.

  • Automatically sleep when the device is paused.
  • Automatically kill the application when the return key is pressed.