summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
Commit message (Collapse)AuthorAgeFilesLines
* unconst.Martin v. Löwis2006-02-271-2/+2
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Fix icc warnings: try to set TCL_UNIX_FD for #if TCL_WIN_SOCKET == ↵Neal Norwitz2006-01-081-0/+11
| | | | TCL_UNIX_FD. res is not used, add a XXX comment
* Remove extra parensNeal Norwitz2005-12-191-1/+1
|
* Fix SF bug #1072182, problems with signed characters.Neal Norwitz2005-12-191-1/+1
| | | | Most of these can be backported.
* Add const to several API functions that take char *.Jeremy Hylton2005-12-101-2/+2
| | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
* Build with --disable-unicode again. Fixes #1158607.Martin v. Löwis2005-03-081-1/+3
| | | | Will backport to 2.4.
* Patch #1050475: Fix various x86_64 build issuesMartin v. Löwis2004-11-131-2/+2
| | | | | | regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems. _tkinter.c: replace %.8x with %p for printing pointers. setup.py: add lib64 into the library directories.
* Tkapp_New(): Rewrite in C so it compiles again.Tim Peters2004-08-041-1/+4
|
* Patch #986929: Add support for wish -sync and -use options.Martin v. Löwis2004-08-031-4/+37
|
* Remove gcc warning from using "main". Use METH_NOARGS instead of METH_VARARGSNeal Norwitz2004-02-191-5/+3
|
* Implementation of patch 869468David Ascher2004-02-181-9/+53
| | | | | | | | | | | | | | | Allow the user to create Tkinter.Tcl objects which are just like Tkinter.Tk objects except that they do not initialize Tk. This is useful in circumstances where the script is being run on machines that do not have an X server running -- in those cases, Tk initialization fails, even if no window is ever created. Includes documentation change and tests. Tested on Linux, Solaris and Windows. Reviewed by Martin von Loewis.
* Getting rid of all the code inside #ifdef macintosh too.Jack Jansen2003-11-201-150/+1
|
* Check for TclError when reading variables. Fixes #807314.Martin v. Löwis2003-10-031-5/+9
| | | | Backported to 2.3.
* Properly deal with tuples in Open._fixresult. Fixes bug reported inMartin v. Löwis2003-06-141-2/+4
| | | | follow-up to #621891.
* Fix SF #745055, Memory leak in _tkinter.c/Tkapp_SplitList()Neal Norwitz2003-05-291-3/+10
| | | | | | | Also fix a memory leak in Tkapp_Split. This needs to be backported. I'll leave it up to Barry whether this is for 2.2.3 or 2.2.4.
* Only return objects if wantobjects is set in GetVar.Martin v. Löwis2003-05-191-1/+6
|
* Patch #734118: Add {get|set}busywaitinterval.Martin v. Löwis2003-05-091-2/+44
|
* Implement tcl object __cmp__.Martin v. Löwis2003-05-031-1/+12
|
* Convert tcl objects to strings in getvar/setvar. Fixes #730506.Martin v. Löwis2003-05-011-2/+26
|
* Support UCS-4 Tcl for UCS-4 Python builds. Fixes #719880.Martin v. Löwis2003-04-161-4/+8
|
* Use object interface for global vars. Fixes #721171.Martin v. Löwis2003-04-151-127/+94
| | | | Also move complete processing of get/set/delvar calls to target thread.
* Wrap thread stuff in WITH_THREAD. Fixes #704641.Martin v. Löwis2003-03-301-3/+23
|
* Fake bool API for Python 2.2.Martin v. Löwis2003-03-301-0/+5
|
* Fix SF #692416, don't crash interpreter for _tkinter.deletefilehandlerNeal Norwitz2003-03-031-1/+13
| | | | in addition to createfilehandler and creaetetimerhandler.
* Don't crash on _tkinter.createfilehandler in non-threaded Tcl;Martin v. Löwis2003-03-031-1/+26
| | | | | disable this function in threaded Tcl. Likewise for creaetetimerhandler. Fixes #692416.
* Add more missing PyErr_NoMemory() after failled memory allocsNeal Norwitz2003-02-111-1/+1
|
* Convert booleans to integers in IntVar.set. Fixes #671741.Martin v. Löwis2003-01-221-1/+3
| | | | | Return booleans from _tkinter.getboolean. Convert booleans to Tcl booleans in AsObj.
* Avoid usage of PyDoc_STR in 2.2 compatibility code.Martin v. Löwis2003-01-211-1/+1
|
* Patch #661760: Cygwin auto-import module patchJason Tishler2003-01-061-2/+1
| | | | | | | | | | | | The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin.
* Fix typo.Martin v. Löwis2003-01-041-1/+1
|
* Remove appartment check from dooneevent. Fixes #660961.Martin v. Löwis2003-01-041-6/+17
| | | | Check whether self is NULL in mainloop.
* Wrap doc strings in PyDoc_STRVAR. Fix .string docstring. Provide defaultMartin v. Löwis2003-01-041-3/+21
| | | | macro definitions for older Python releases.
* Convert Tcl path objects to strings. Fixes #661357.Martin v. Löwis2003-01-041-1/+64
| | | | Provide .string attribute and __unicode for Tcl_Objs.
* Patch #660485: Cygwin _tkinter Tcl/Tk 8.3 patchJason Tishler2002-12-311-2/+4
| | | | | | | The attached patch enables Cygwin Python to build cleanly against the latest Cygwin Tcl/Tk which is based on Tcl/Tk 8.3. It also prevents building against the real X headers, if installed.
* Eliminate C++ comment.Martin v. Löwis2002-12-311-1/+1
|
* Silence cast warnings for Tcl 8.3.Martin v. Löwis2002-12-301-6/+12
|
* Gracefully delay runtime error up to 1s. Add .willdispatch().Martin v. Löwis2002-12-281-12/+31
|
* Always initialize objc.Martin v. Löwis2002-12-121-1/+1
|
* Support threads-enabled Tcl installations.Martin v. Löwis2002-12-121-118/+525
|
* Remove C++ comment. Silence unsigned char* cast warning.Martin v. Löwis2002-12-071-2/+2
|
* Decode untyped strings from UTF-8.Martin v. Löwis2002-12-041-2/+27
|
* Avoid including tclInt.h.Martin v. Löwis2002-11-261-10/+26
|
* Rename want_objects to wantobjects throughout, for consistency.Martin v. Löwis2002-11-261-10/+10
|
* Patch #518625: Return objects in Tkinter.Martin v. Löwis2002-11-261-6/+327
|
* Support UCS-4 builds.Martin v. Löwis2002-10-011-8/+36
|
* Eliminate constness warnings with Tcl 8.4.Martin v. Löwis2002-10-011-4/+13
|
* Drop support for Tk 8.0 and 8.1.Martin v. Löwis2002-10-011-137/+2
|
* Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." linkMark Hammond2002-07-231-1/+1
| | | | | command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
* staticforward bites the dust.Jeremy Hylton2002-07-171-3/+3
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.