Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e168c65

Browse files
committed
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.
1 parent 6b26a06 commit e168c65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/tkappinit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Tcl_AppInit(interp)
2121
{
2222
Tk_Window main;
2323

24-
main = Tk_MainWindow(interp);
25-
2624
if (Tcl_Init (interp) == TCL_ERROR)
2725
return TCL_ERROR;
2826
if (Tk_Init (interp) == TCL_ERROR)
2927
return TCL_ERROR;
3028

29+
main = Tk_MainWindow(interp);
30+
3131
#ifdef WITH_MOREBUTTONS
3232
{
3333
extern Tcl_CmdProc studButtonCmd;

0 commit comments

Comments
 (0)