PyDocs

Nav

Graphical user interfaces with Tk

Misc.register

tkinter

method of Misc
  • Misc.register(func, subst=None, needcleanup=1)
Register the Python callable func as a Tcl command and return the name of the new command as a string. Whenever Tcl invokes that command, func is called; if subst is given, it is applied to the command’s arguments first. This is the mechanism used internally to turn Python callbacks into the command names passed to Tk options such as command. Unless needcleanup is false, the command is deleted automatically when the widget is destroyed.
Changed in 3.13
  • 3.13: The arguments passed to func are no longer converted to strings.
0 Examples
No examples for tkinter/Misc.register.
See Also
No see-alsos for tkinter/Misc.register
0 Notes
No notes for Misc.register