1Tk_MainWindow(3) Tk Library Procedures Tk_MainWindow(3)
2
3
4
5______________________________________________________________________________
6
8 Tk_MainWindow, Tk_GetNumMainWindows - functions for querying main win‐
9 dow information
10
12 #include <tk.h>
13
14 Tk_Window
15 Tk_MainWindow(interp)
16
17 int
18 Tk_GetNumMainWindows()
19
21 Tcl_Interp *interp (in/out) Interpreter associated with the ap‐
22 plication.
23______________________________________________________________________________
24
26 A main window is a special kind of toplevel window used as the outer‐
27 most window in an application.
28
29 If interp is associated with a Tk application then Tk_MainWindow re‐
30 turns the application's main window. If there is no Tk application as‐
31 sociated with interp then Tk_MainWindow returns NULL and leaves an er‐
32 ror message in interpreter interp's result.
33
34 Tk_GetNumMainWindows returns a count of the number of main windows cur‐
35 rently open in the current thread.
36
38 application, main window
39
40
41
42Tk 7.0 Tk_MainWindow(3)