summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] bpo-42318: Fix support of non-BMP characters in Tkinter on macOS ↵Miss Islington (bot)2020-12-251-1/+53
| | | | | | | (GH-23281). (GH-23784) (GH-23787) (cherry picked from commit a26215db11cfcf7b5f55cab9e91396761a0e0bcf) (cherry picked from commit 28bf6ab61f77c69b732a211c398ac882bf3f65f4)
* bpo-38823: Clean up refleaks in _tkinter initialization. (GH-17206)Miss Islington (bot)2019-11-181-0/+2
| | | | | | https://bugs.python.org/issue38823 (cherry picked from commit 289cf0fbf78c4f38c38ac71ac8b772be7ec2672f) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-13153: Use OS native encoding for converting between Python and Tcl. ↵Miss Islington (bot)2019-10-041-173/+202
| | | | | | | | | | | | | | | (GH-16545) On Windows use UTF-16 (or UTF-32 for 32-bit Tcl_UniChar) with the "surrogatepass" error handler for converting to/from Tcl Unicode objects. On Linux use UTF-8 with the "surrogateescape" error handler for converting to/from Tcl String objects. Converting strings from Tcl to Python and back now never fails (except MemoryError). (cherry picked from commit 06cb94bc8419b9a24df6b0d724fcd8e40c6971d6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.8] bpo-37206: Unrepresentable default values no longer represented as ↵Serhiy Storchaka2019-09-141-4/+4
| | | | | | | | | | None. (GH-13933) (GH-16141) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. (cherry picked from commit 279f44678c8b84a183f9eeb85e0b086228154497) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35810: Incref heap-allocated types in PyObject_Init (GH-11661)Eddie Elizondo2019-03-271-3/+0
| | | | | * Incref heap-allocated types in PyObject_Init * Add documentation and porting notes to What's New
* bpo-33029: Fix signatures of getter and setter functions. (GH-10746)Serhiy Storchaka2018-11-271-2/+2
| | | Fix also return type for few other functions (clear, releasebuffer).
* bpo-34794: Fix a leak in Tkinter. (GH-10025)Serhiy Storchaka2018-10-231-3/+1
| | | Based on the investigation by Xiang Zhang.
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-1/+1
|
* bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵stratakis2017-11-021-32/+2
| | | | functions (GH-793)
* bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (#3866)Serhiy Storchaka2017-10-031-2/+10
| | | | | when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
* bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (#3864)Serhiy Storchaka2017-10-031-4/+4
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-62/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Use NULL rather than 0. (#778)Serhiy Storchaka2017-03-231-1/+1
| | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer.
* bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)Serhiy Storchaka2017-03-121-5/+5
|
* bpo-29548: Fix some inefficient call API usage (GH-97)INADA Naoki2017-02-161-7/+4
|
* Added the const qualifier to char* variables that refer to readonly internalSerhiy Storchaka2016-11-201-3/+3
| | | | UTF-8 represenatation of Unicode objects.
* Fixed possible NULL decrefing.Serhiy Storchaka2016-10-281-1/+1
|\
| * Fixed possible NULL decrefing.Serhiy Storchaka2016-10-281-1/+1
| |
* | replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-071-1/+1
| |
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-2/+0
| |
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-8/+8
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-8/+8
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Use macros instead of corresponding functions (they never fail) in _tkinter.c.Serhiy Storchaka2016-06-191-22/+26
| |
* | Issue #23815: Fixed crashes related to directly created instances of types inSerhiy Storchaka2016-05-081-0/+3
|\ \ | |/ | | | | _tkinter and curses.panel modules.
| * Issue #23815: Fixed crashes related to directly created instances of types inSerhiy Storchaka2016-05-081-0/+3
| | | | | | | | _tkinter and curses.panel modules.
* | Got rid of redundand "self" parameter declarations.Serhiy Storchaka2016-05-021-12/+5
| | | | | | | | Argument Clinic is now able to infer all needed information.
* | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-4/+4
|/ | | | private functions.
* Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-221-1/+118
| | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
* Use specialized functions intead of Py_BuildValue() in _tkinter.Serhiy Storchaka2015-05-061-4/+4
|
* Issue #23880: Tkinter's getint() and getdouble() now support Tcl_Obj.Serhiy Storchaka2015-05-061-7/+25
| | | | Tkinter's getdouble() now supports any numbers (in particular int).
* Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-3/+3
| | | | instead of types={'type'} to specify the types the converter accepts.
* Fix Windows build breakage from checkins on Issues #20148 and #20168.Larry Hastings2015-05-031-38/+33
|
* Issue #20168: Converted the _tkinter module to Argument Clinic.Serhiy Storchaka2015-05-031-246/+417
|
* Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than ↵Serhiy Storchaka2015-04-221-3/+4
|\ | | | | | | | | | | | | 8.5.8 (tclTomMath.h was broken) and non-final Tcl 8.6. Removed TK_VERSION_HEX.
| * Issue #16840. Turn off bignum support in tkinter with with Tcl earlier than ↵Serhiy Storchaka2015-04-221-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 #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 Tcl_Obj and alwaysSerhiy Storchaka2015-04-041-9/+14
|\ \ | |/ | | | | | | returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
| * Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and alwaysSerhiy Storchaka2015-04-041-9/+14
| | | | | | | | | | returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, 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-16/+193
|\ \ | |/ | | | | arbitrary precision integers added in Tcl 8.5.
| * Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 andSerhiy Storchaka2015-04-021-16/+206
| | | | | | | | arbitrary precision integers added in Tcl 8.5.
* | Issue #21526: Fixed support of new boolean type in Tcl 8.5.Serhiy Storchaka2015-04-021-4/+19
|\ \ | |/
| * Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.Serhiy Storchaka2015-04-021-15/+34
| |
* | Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.Serhiy Storchaka2015-03-221-8/+12
| |
* | Issue #20204: Added the __module__ attribute to _tkinter classes.Serhiy Storchaka2015-03-011-2/+2
|\ \ | |/
| * Issue #20204: Added the __module__ attribute to _tkinter classes.Serhiy Storchaka2015-03-011-2/+2
| |
| * Shoould be Py_MIN, not Py_MAX.Serhiy Storchaka2015-02-161-1/+1
| |
* | Issue #23450: Fixed possible integer overflows.Serhiy Storchaka2015-02-161-20/+25
| |
* | Closes #22336: attemptckalloc() with PyMem_Malloc() in _tkinterVictor Stinner2014-09-111-12/+12
| | | | | | | | | | | | The PyMem_Malloc(size) function has a well defined behaviour: if size is 0, a pointer different than NULL is returned. PyMem_Malloc() allocations are tracked by tracemalloc, attemptckalloc() allocations are not tracked.
* | 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.