Tk_MainLoop(3tk)

πŸ“¦
version 9.0.4 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

okay so bestie, welcome to the Tk_MainLoop(3tk) page from the Tk Library Procedures manual. It's giving main-character event loop energy, and we're gonna read it together. πŸ’…βœ¨

🌸 NAME 🌸

Tk_MainLoop β€” loop for events until all windows are deleted. periodt.

✨ SYNOPSIS ✨

#include <tk.h>

Tk_MainLoop()

πŸ¦‹ DESCRIPTION πŸ¦‹

So, Tk_MainLoop is a procedure that loops repeatedly calling Tcl_DoOneEvent. That's the whole vibe. It returns only when there are no applications left in this process, i.e. no main windows exist anymore. no windows, no loop, bye. 😭

Most windowing applications will call Tk_MainLoop after initialization. After that, the main execution of the application will consist entirely of callbacks invoked via Tcl_DoOneEvent. literally just callbacks running the show, iykyk.

πŸ‘‘ KEYWORDS πŸ‘‘

  • application
  • event
  • main loop

that's the page, bestie! This footer energy comes from the Tk manual, and it's tagged Tk_MainLoop(3tk) β€” no date on this footer, just those two facts, and honestly? iconic. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from