module documentation
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)
When using Aqua Tcl/Tk on macOS the standard Quit menu item in your application might become unresponsive without the additional fix:
| root.createcommand("::tk::mac::Quit", reactor.stop)
See Also | |
Tcl/TkAqua FAQ for more info |
Function | get |
Undocumented |
Function | install |
Install a Tkinter.Tk() object into the reactor. |
Function | install |
Undocumented |
Function | uninstall |
Remove the root Tk widget from the reactor. |
Variable | _task |
Undocumented |