]> granicus.if.org Git - python/commitdiff
Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 May 2014 13:57:55 +0000 (16:57 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 May 2014 13:57:55 +0000 (16:57 +0300)
default.

Misc/NEWS
Modules/_tkinter.c

index dad1db8f8787ba080b6573ea17930625ad8d9673..810039e42cfbc34b6dec8594de25c71cafbad413 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by
+  default.
+
 - Issue #10203: sqlite3.Row now truly supports sequence protocol.  In particulr
   it supports reverse() and negative indices.  Original patch by Claudiu Popa.
 
index e47e8f3d14b873dacc9687b8f8e74c3eff7b5d9c..0b8e55569383ee57004e7bab4c705e62bafd7134 100644 (file)
@@ -2777,7 +2777,7 @@ Tkinter_Create(PyObject *self, PyObject *args)
                               try getting rid of it. */
     char *className = NULL;
     int interactive = 0;
-    int wantobjects = 0;
+    int wantobjects = 1;
     int wantTk = 1;     /* If false, then Tk_Init() doesn't get called */
     int sync = 0; /* pass -sync to wish */
     char *use = NULL; /* pass -use to wish */