summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and ↵2.7Serhiy Storchaka2017-10-041-2/+10
| | | | | | | | split() (GH-3866) (#3876) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.. (cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
* _tkinter: Fix refleak in getint() (#2153)Victor Stinner2017-06-131-2/+6
| | | | PyNumber_Int() creates a new reference: need to decrement result reference counter.
* Fixed possible NULL decrefing.Serhiy Storchaka2016-10-281-1/+1
|
* Fix English spelling and grammar errorsMartin Panter2016-06-201-2/+2
|
* Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than ↵Serhiy Storchaka2015-04-211-3/+4
| | | | | | 8.5.8 (tclTomMath.h was broken) and non-final Tcl 8.6.
* Issue #16840: Turn on support of bignums only in final release of Tcl 8.5.Serhiy Storchaka2015-04-201-1/+1
|
* Issue #15133: _tkinter.tkapp.getboolean() now supports long and Tcl_Obj andSerhiy Storchaka2015-04-041-9/+16
| | | | | | always returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, long, str, unicode, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
* Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 andSerhiy Storchaka2015-04-021-13/+222
| | | | arbitrary precision integers added in Tcl 8.5.
* Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.Serhiy Storchaka2015-04-021-15/+34
|
* Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command withSerhiy Storchaka2014-09-111-0/+4
| | | | | | | empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
* Issue #21951: Use attemptckalloc() instead of ckalloc() in Tkinter.Serhiy Storchaka2014-09-111-12/+28
| | | | | ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL if the memory allocation fails.
* Issue #21580: Now Tkinter correctly handles binary "data" and "maskdata"Serhiy Storchaka2014-07-311-0/+28
| | | | | | configure options of tkinter.PhotoImage. Added private Tkapp method _createbytearray().
* Call PyErr_NoMemory() when PyMem_Malloc() fails.Serhiy Storchaka2014-07-141-1/+3
|
* Fixed possible integer overflow in getint, getdouble and getboolean too ↵Serhiy Storchaka2014-05-301-0/+3
| | | | (issue #21552).
* Issue #21552: Fixed possible integer overflow of too long string lengths inSerhiy Storchaka2014-05-301-1/+32
| | | | the Tkinter module on 64-bit platforms.
* Issue #20368: The null character now correctly passed from Tcl to Python (inSerhiy Storchaka2014-02-031-99/+116
| | | | unicode strings only). Improved error handling in variables-related commands.
* Issue #18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't castVictor Stinner2013-09-041-1/+1
| | | | 64-bit pointer to long (32 bits).
* Issue #16809: Tkinter's splitlist() and split() methods now accept Tcl_ObjSerhiy Storchaka2013-08-221-12/+53
| | | | | | argument. This is needed for support Tcl/Tk 8.6.
* Issue #17119: Fixed integer overflows when processing large Unicode stringsSerhiy Storchaka2013-08-211-10/+33
| | | | and tuples in the tkinter module.
* Issue #18101: Tcl.split() now process Unicode strings nested in a tuple as itSerhiy Storchaka2013-07-111-0/+27
| | | | | | do with byte strings. Added tests for Tcl.split() and tcl.splitline().
* Issue #13153: Tkinter functions now raise TclError instead of ValueError whenSerhiy Storchaka2013-02-181-2/+4
| | | | a unicode argument contains non-BMP character.
* Remove all other uses of the C tolower()/toupper() which could break with a ↵Antoine Pitrou2011-10-041-2/+2
| | | | | | Turkish locale. (except in the strop module, which is deprecated anyway)
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-2102/+2102
|
* Remove an unused variable.Brett Cannon2010-05-031-2/+1
| | | | Found using Clang's static analyzer.
* Include tkinter.h only after including tk.h (or the equivalent for another ↵Guilherme Polo2009-04-051-2/+2
| | | | platform).
* Typo fixGuilherme Polo2009-03-281-1/+1
|
* Adjusted _tkinter to compile without warnings when WITH_THREAD is notGuilherme Polo2009-03-271-6/+29
| | | | defined (part of issue #5035)
* Fixed issue #4792: Prevent a segfault in _tkinter by using theGuilherme Polo2009-03-071-1/+1
| | | | | guaranteed to be safe interp argument given to the PythonCmd in place of the Tcl interpreter taken from a PythonCmd_ClientData.
* Enforcing Tk 8.3.1 requirement.Guilherme Polo2009-02-091-2/+2
|
* Fixed issue #5122: Synchronize tk load failure check to prevent aGuilherme Polo2009-02-091-26/+63
| | | | potential deadlock.
* Issue #1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that willGuilherme Polo2009-02-061-17/+25
| | | | | | not be used again (this requires Tcl/Tk 8.3.1), also fix a memory leak in Tkapp_Call when calling from a thread different than the one that created the Tcl interpreter.
* Partial fix to issue #1731706: memory leak in Tkapp_Call when callingGuilherme Polo2009-02-061-1/+3
| | | | from a thread different than the one that created the Tcl interpreter.
* Fix for issue #1581476Guilherme Polo2009-02-021-2/+1
|
* make _tkinter._flatten check the result of PySequence_Size for errors #3880Benjamin Peterson2009-01-301-1/+3
|
* The _tkinter module functions "createfilehandler", "deletefilehandler",Guilherme Polo2009-01-031-0/+36
| | | | | "createtimerhandler", "mainloop", "dooneevent" and "quit" have been deprecated for removal in 3.x (part of issue #3638).
* Make more symbols static.Martin v. Löwis2008-06-131-2/+2
|
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-41/+41
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-41/+41
|
* Bug #1301: fixed a bad assert in _tkinter.Guido van Rossum2008-01-031-3/+5
|
* Return results from Python callbacks to Tcl as Tcl objects.Martin v. Löwis2008-01-011-12/+5
| | | | Fixes Tk issue #1851526
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-5/+5
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Backport r56875 from py3k; double LEAVE_PYTHON when AsString() failsGuido van Rossum2007-08-091-1/+3
| | | | in PythonCmd().
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-9/+7
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Many calls to tk.call involve an arglist containing a single tuple.Kurt B. Kaiser2007-07-051-0/+6
| | | | | | | | | | Calls using METH_OLDARGS unpack this tuple; calls using METH_VARARG don't. Tcl's concatenation of args was affected; IDLE doesn't start. Modify Tkapp_Call() to unpack single tuple arglists. Bug 1733943 Ref http://mail.python.org/pipermail/python-checkins/2007-May/060454.html
* Stop using METH_OLDARGSNeal Norwitz2007-05-221-3/+3
|
* Don't deref v if it's NULL.Neal Norwitz2006-08-121-2/+4
| | | | Klocwork #214
* self is dereffed (and passed as first arg), so it's known to be good.Neal Norwitz2006-07-161-2/+2
| | | | | | func is returned from PyArg_ParseTuple and also dereffed. Reported by Klocwork, #30 (self one at least).
* Fix some Py_ssize_t issuesNeal Norwitz2006-06-121-2/+3
|
* [Bug #1497414] _self is a reserved word in the WATCOM 10.6 C compiler.Andrew M. Kuchling2006-06-031-15/+15
| | | | | | | | | | Fix by renaming the variable. In a different module, Neal fixed it by renaming _self to self. There's already a variable named 'self' here, so I used selfptr. (I'm committing this on a Mac without Tk, but it's a simple search-and-replace. <crosses fingers>, so I'll watch the buildbots and see what happens.)
* Work around deadlock risk. Will backport.Martin v. Löwis2006-05-011-3/+15
|