Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: c94d53db0e54d919ed3d37b85bd8d6e7f5a64a9e authored by cvs2svn on 11 October 1994, 15:44:53 UTC
This commit was manufactured by cvs2svn to create tag 'release11'.
Tip revision: c94d53d
tkappinit.c
/* 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;
}

back to top