summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * 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-10/+26
|\ \ | |/ | | | | | | ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL if the memory allocation fails.
| * Issue #21951: Use attemptckalloc() instead of ckalloc() in Tkinter.Serhiy Storchaka2014-09-111-10/+26
| | | | | | | | | | ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL if the memory allocation fails.
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-2/+2
| | | | | | | | argument contains not permitted null character or byte.
* | Issue #21951: Fix AsObj() of the _tkinter module: raise MemoryError on memoryVictor Stinner2014-09-041-2/+4
| | | | | | | | allocation failure
* | Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-151-2/+2
| | | | | | | | compiler warnings in the Modules/ subdirectory.