Debian Codegraph @

pod/pTk/MainLoop.pod

raw
1 # Copyright (c) 1990-1992 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk_MainLoop - loop for events until all windows are deleted
11
12 =for category C Programming
13
14 =head1 SYNOPSIS
15
16 B<#include E<lt>tk.hE<gt>>
17
18 B<Tk_MainLoop>()
19
20 =head1 DESCRIPTION
21
22 B<Tk_MainLoop> is a procedure that loops repeatedly calling
23 B<Tcl_DoOneEvent>. It returns only when there are no applications
24 left in this process (i.e. no main windows exist anymore). Most
25 windowing applications will call B<Tk_MainLoop> after
26 initialization; the main execution of the application will consist
27 entirely of callbacks invoked via B<Tcl_DoOneEvent>.
28
29 =head1 KEYWORDS
30
31 application, event, main loop