Tk_MainLoop(3tk)
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
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 1990-1992 The Regents of the University of California
- Copyright (c) 1994-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms