]> granicus.if.org Git - python/commitdiff
Fix for issue #1581476
authorGuilherme Polo <ggpolo@gmail.com>
Mon, 2 Feb 2009 21:08:32 +0000 (21:08 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Mon, 2 Feb 2009 21:08:32 +0000 (21:08 +0000)
Modules/_tkinter.c

index 6e89f2f9c32510bc882ea2b39e2cecd44c974f62..8b56bcd0dc38bef072d7120e3383207744ac9f9b 100644 (file)
@@ -1284,8 +1284,7 @@ Tkapp_Call(PyObject *selfptr, PyObject *args)
        int objc, i;
        PyObject *res = NULL;
        TkappObject *self = (TkappObject*)selfptr;
-       /* Could add TCL_EVAL_GLOBAL if wrapped by GlobalCall... */
-       int flags = TCL_EVAL_DIRECT;
+       int flags = TCL_EVAL_DIRECT | TCL_EVAL_GLOBAL;
 
        /* If args is a single tuple, replace with contents of tuple */
        if (1 == PyTuple_Size(args)){