Mercurial > cpython-lru_cache-weakref
view Modules/tkappinit.c @ 3216:d00a79ebb027 legacy-trunk
Added missing imgpbm and imgsgi modules
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 12 Oct 1995 10:23:27 +0000 |
| parents | d88af58e95cd |
| children | e6b797aaa69f |
line wrap: on
line source
/* appinit.c -- Tcl and Tk application initialization. */ #include <tcl.h> #include <tk.h> int Tcl_AppInit (interp) Tcl_Interp *interp; { Tk_Window main; main = Tk_MainWindow(interp); if (Tcl_Init (interp) == TCL_ERROR) return TCL_ERROR; if (Tk_Init (interp) == TCL_ERROR) return TCL_ERROR; #ifdef WITH_MOREBUTTONS { extern Tcl_CmdProc studButtonCmd; extern Tcl_CmdProc triButtonCmd; Tcl_CreateCommand(interp, "studbutton", studButtonCmd, (ClientData) main, NULL); Tcl_CreateCommand(interp, "tributton", triButtonCmd, (ClientData) main, NULL); } #endif #ifdef WITH_XXX #endif return TCL_OK; }
