t.i.tksupport : module documentation

Part of twisted.internet View Source

This module integrates Tkinter with twisted.internet's mainloop.

Maintainer: Itamar Shtull-Trauring

To use, do:
   | tksupport.install(rootWidget)

and then run your reactor as usual - do *not* call Tk's mainloop(), use Twisted's regular mechanism for running the event loop.

Likewise, to stop your program you will need to stop Twisted's event loop. For example, if you want closing your root widget to stop Twisted:
   | root.protocol('WM_DELETE_WINDOW', reactor.stop)
Function install Install a Tkinter.Tk() object into the reactor.
Function uninstall Remove the root Tk widget from the reactor.
Function installTkFunctions Undocumented
Function getPassword Undocumented
def install(widget, ms=10, reactor=None): (source)
Install a Tkinter.Tk() object into the reactor.
def uninstall(): (source)

Remove the root Tk widget from the reactor.

Call this before destroy()ing the root widget.
def installTkFunctions(): (source)
Undocumented
def getPassword(prompt='', confirm=0): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.