Don't reference removed files in Makefile
[python/dscho.git] / Modules / tkappinit.c
blobdaff9e56e0d7455003509129e4206bf1f0924ef0
1 /* appinit.c -- Tcl and Tk application initialization. */
3 #include <tcl.h>
4 #include <tk.h>
6 int
7 Tcl_AppInit (interp)
8 Tcl_Interp *interp;
10 Tk_Window main;
12 main = Tk_MainWindow(interp);
14 if (Tcl_Init (interp) == TCL_ERROR)
15 return TCL_ERROR;
16 if (Tk_Init (interp) == TCL_ERROR)
17 return TCL_ERROR;
19 #ifdef WITH_MOREBUTTONS
21 extern Tcl_CmdProc studButtonCmd;
22 extern Tcl_CmdProc triButtonCmd;
24 Tcl_CreateCommand(interp, "studbutton", studButtonCmd,
25 (ClientData) main, NULL);
26 Tcl_CreateCommand(interp, "tributton", triButtonCmd,
27 (ClientData) main, NULL);
29 #endif
30 #ifdef WITH_XXX
32 #endif
34 return TCL_OK;