Benjamin Peterson
2f8bfef158
replace PY_SIZE_MAX with SIZE_MAX
9 years ago
Benjamin Peterson
ed4aa83ff7
require a long long data type ( closes #27961 )
10 years ago
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
10 years ago
Serhiy Storchaka
696c8af41f
Use macros instead of corresponding functions (they never fail) in _tkinter.c.
10 years ago
Serhiy Storchaka
e3f1b0911e
Issue #23815 : Fixed crashes related to directly created instances of types in
_tkinter and curses.panel modules.
10 years ago
Serhiy Storchaka
7a9579c0ce
Got rid of redundand "self" parameter declarations.
Argument Clinic is now able to infer all needed information.
10 years ago
Serhiy Storchaka
ef1585eb9a
Issue #25923 : Added more const qualifiers to signatures of static and private functions.
10 years ago
Zachary Ware
7dc9dea778
Issue #20035 : Reimplement tkinter._fix module as a C function.
The new private C function makes no permanent changes to the environment
and is #ifdef'd out on non-Windows platforms.
11 years ago
Serhiy Storchaka
8d0f620285
Use specialized functions intead of Py_BuildValue() in _tkinter.
11 years ago
Serhiy Storchaka
645058d11a
Issue #23880 : Tkinter's getint() and getdouble() now support Tcl_Obj.
Tkinter's getdouble() now supports any numbers (in particular int).
11 years ago
Larry Hastings
dbfdc380df
Issue #24001 : Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
11 years ago
Larry Hastings
2d0a69a456
Fix Windows build breakage from checkins on Issues #20148 and #20168 .
11 years ago
Serhiy Storchaka
5abdf48430
Issue #20168 : Converted the _tkinter module to Argument Clinic.
11 years ago
Serhiy Storchaka
3af7a38c61
Issue #16840 . Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
(tclTomMath.h was broken) and non-final Tcl 8.6.
11 years ago
Serhiy Storchaka
77e8311deb
Issue #16840 : Turn on support of bignums only in final release of Tcl 8.5.
11 years ago
Serhiy Storchaka
9a6e201f7d
Issue #15133 : _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool. tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
11 years ago
Serhiy Storchaka
ea134da929
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5.
11 years ago
Serhiy Storchaka
f7de3dd02d
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
11 years ago
Serhiy Storchaka
f07a4b663d
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
11 years ago
Serhiy Storchaka
efdc16f978
Issue #20204 : Added the __module__ attribute to _tkinter classes.
11 years ago
Serhiy Storchaka
3584056ca5
Shoould be Py_MIN, not Py_MAX.
11 years ago
Serhiy Storchaka
26861b0b29
Issue #23450 : Fixed possible integer overflows.
11 years ago
Victor Stinner
ee6c3c7162
Closes #22336 : attemptckalloc() with PyMem_Malloc() in _tkinter
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.
12 years ago
Serhiy Storchaka
abf68ce164
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
12 years ago
Serhiy Storchaka
0794088379
Issue #21951 : Use attemptckalloc() instead of ckalloc() in Tkinter.
ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL
if the memory allocation fails.
12 years ago
Serhiy Storchaka
d8a1447c99
Issue #22215 : Now ValueError is raised instead of TypeError when str or bytes
argument contains not permitted null character or byte.
12 years ago
Victor Stinner
60a64d6812
Issue #21951 : Fix AsObj() of the _tkinter module: raise MemoryError on memory
allocation failure
12 years ago
Victor Stinner
706768c687
Issue #22156 : Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
12 years ago
Zachary Ware
037605b50e
Closes #22136 : Fix MSVC compiler warnings introduced by #22085
12 years ago
Serhiy Storchaka
6716d60cec
Issue #22085 : Dropped support of Tk 8.3 in Tkinter.
12 years ago
Serhiy Storchaka
74596a887a
Issue #21580 : Now Tkinter correctly handles bytes arguments passed to Tk.
In particular this allows to initialize images from binary data.
12 years ago
Serhiy Storchaka
b1ebfdddb3
Call PyErr_NoMemory() when PyMem_Malloc() fails.
12 years ago
Serhiy Storchaka
79851d755b
Issue #21552 : Fixed possible integer overflow of too long string lengths in
the tkinter module on 64-bit platforms.
12 years ago
Serhiy Storchaka
9e7cbda1ef
Issue #3015 : _tkinter.create() now creates tkapp object with wantobject=1 by
default.
12 years ago
Serhiy Storchaka
2b00c4999d
Issue #21525 : Most Tkinter methods which accepted tuples now accept lists too.
12 years ago
Christian Heimes
d33491ea76
Issue #20515 : Fix NULL pointer dereference introduced by issue #20368
CID 1167595
12 years ago
Serhiy Storchaka
1317e14468
Issue #20368 : The null character now correctly passed from Tcl to Python.
Improved error handling in variables-related commands.
12 years ago
Serhiy Storchaka
7e52705ee3
Issue #20315 : Removed support for backward compatibility with early 2.x versions.
12 years ago
Serhiy Storchaka
369606df2f
Issue #19028 : Fixed tkinter.Tkapp.merge() for non-string arguments.
12 years ago
Serhiy Storchaka
463bd4b5c6
Issue #19034 : repr() for tkinter.Tcl_Obj now exposes string reperesentation.
12 years ago
Serhiy Storchaka
31f477c7eb
Issue #3015 : Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
13 years ago
Victor Stinner
e1040e276b
Issue #18909 : Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
64-bit pointer to long (32 bits).
13 years ago
Serhiy Storchaka
203eb317d2
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
argument.
This is needed for support Tcl/Tk 8.6.
13 years ago
Serhiy Storchaka
9e6b97502f
Issue #17119 : Fixed integer overflows when processing large strings and tuples
in the tkinter module.
13 years ago
Antoine Pitrou
584e815114
Fix refcounting issue with extension types in tkinter.
(issue #15721 )
13 years ago
Serhiy Storchaka
275d5fdbe4
Issue #18101 : Tcl.split() now process strings nested in a tuple as it
do with byte strings.
Added tests for Tcl.split() and Tcl.splitline().
13 years ago
Serhiy Storchaka
59f5dee3d6
Issue #13153 : Tkinter functions now raise TclError instead of ValueError when
a string argument contains non-BMP character.
13 years ago
Serhiy Storchaka
4676448941
Issue #13153 : Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.
13 years ago
Andrew Svetlov
d2217a83d4
Issue #15721 : apply PEP 384 Refactoring to tkinter module.
13 years ago
Andrew Svetlov
d0ad0b3ae2
Reformat _tkinter code to follow PEP7
13 years ago