Kaydet (Commit) e168c656 authored tarafından Guido van Rossum's avatar Guido van Rossum

Patch by Dieter Maurer to make things work for Tcl/Tk 8.1. This

simply moves the call to Tk_MainWindow() after the Tcl/Tk
initialization calls.  The patch is unconditional, it works with
earlier and later versions as well.
üst 6b26a060
...@@ -21,13 +21,13 @@ Tcl_AppInit(interp) ...@@ -21,13 +21,13 @@ Tcl_AppInit(interp)
{ {
Tk_Window main; Tk_Window main;
main = Tk_MainWindow(interp);
if (Tcl_Init (interp) == TCL_ERROR) if (Tcl_Init (interp) == TCL_ERROR)
return TCL_ERROR; return TCL_ERROR;
if (Tk_Init (interp) == TCL_ERROR) if (Tk_Init (interp) == TCL_ERROR)
return TCL_ERROR; return TCL_ERROR;
main = Tk_MainWindow(interp);
#ifdef WITH_MOREBUTTONS #ifdef WITH_MOREBUTTONS
{ {
extern Tcl_CmdProc studButtonCmd; extern Tcl_CmdProc studButtonCmd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment