diff options
author | Guido van Rossum <guido@python.org> | 1999-11-05 18:11:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-11-05 18:11:23 (GMT) |
commit | e168c65603db4d024d635af966435d70d96800e7 (patch) | |
tree | d5797b7dbaf98099efd2295a43ddeb65defe9ea5 /Modules/tkappinit.c | |
parent | 6b26a06037d5ceacf2279f8c1f145521316037c9 (diff) | |
download | cpython-e168c65603db4d024d635af966435d70d96800e7.zip cpython-e168c65603db4d024d635af966435d70d96800e7.tar.gz cpython-e168c65603db4d024d635af966435d70d96800e7.tar.bz2 |
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.
Diffstat (limited to 'Modules/tkappinit.c')
-rw-r--r-- | Modules/tkappinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c index 392269b..c57f0e7 100644 --- a/Modules/tkappinit.c +++ b/Modules/tkappinit.c @@ -21,13 +21,13 @@ Tcl_AppInit(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; + main = Tk_MainWindow(interp); + #ifdef WITH_MOREBUTTONS { extern Tcl_CmdProc studButtonCmd; |