summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix SF bug #557436, TclError is a str should be an ExceptionNeal Norwitz2002-06-041-1/+1
| | | | Make Tkinter.TclError derive from Exception, it was a string.
* Use symbolic METH_VARARGS/METH_OLDARGS instead of 1/0 for ml_flagsNeal Norwitz2002-03-311-1/+1
|
* Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.Martin v. Löwis2002-01-261-2/+2
| | | | 2.2.1 bugfix candidate.
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-171-40/+40
|
* Mods by Tony Lownds (patch 490100, slightly massaged by me) to make TkinterJack Jansen2001-12-091-1/+23
| | | | | | | | | | | | | | work with Mac OS X Aqua-Tk, all nicely within ifdefs. The process is not for the faint of heart, though: you need to download and install the (alfa) Aqua-Tk, obtain a few needed X11 headers from somewhere else and then everything builds. To run scripts using Tkinter you must build with --enable-framework, build Python.app in Mac/OSX and run your Tkinter scripts with that. Then, about half the tests in Demo/tkinter work (or at least do something). Checking this in anyway because it shouldn't break anything, and newer versions of Aqua-Tk will streamline the process.
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-2/+2
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-171-0/+11
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Got rid of (hopefully) the last 68k-mac related ifdefs.Jack Jansen2001-08-071-7/+0
|
* File handlers don't work on the mac, so don't pretend they do. I guess this ↵Jack Jansen2001-07-161-1/+2
| | | | is a 2.1.1 candidate, if it isn't too late for that.
* Cruft cleanup: Removed the unused last_is_sticky argument from the internalTim Peters2001-05-281-2/+2
| | | | _PyTuple_Resize().
* Do not release unallocated Tcl objects. Closes #117278 and #117167.Martin v. Löwis2000-10-291-3/+8
|
* Fix for Bug #116453.Guido van Rossum2000-10-121-6/+6
| | | | | | Direct use of interp->result is deprecated; changing this to Tcl_GetStringResult(interp) everywhere fixed the problem of losing the error message with TclError exceptions, on Windows.
* [ Bug #113803 ] [2.0b1 NT4.0] printing non asci char causes idle to abortGuido van Rossum2000-10-061-44/+86
| | | | | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470 Add Unicode support and error handling to AsString(). Both AsString() and Merge() now return NULL and set a proper Python exception condition when an error happens; Merge() and other callers of AsString() check for errors from AsString(). Also fixed cleanup in Merge() and Tkapp_Call() return cleanup code; the fv array was not necessarily completely initialized, causing calls to ckfree() with garbage arguments! (Also reindented some lines that were longer than 80 chars and reformatted some code that used an alien coding standard.)
* SF "bug" 115973: patches from Norman Vine so that shared libraries andTim Peters2000-10-051-1/+1
| | | | Tkinter work under Cygwin. Accepted on faith & reasonableness.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-10/+0
| | | | This should match the situation in the 1.6b1 tree.
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-311-7/+0
| | | | marked my*.h as obsolete
* ANSIfy some more forward declarations.Thomas Wouters2000-07-241-2/+2
|
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-8/+6
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* Use PyObject_AsFileDescriptorAndrew M. Kuchling2000-07-131-44/+2
|
* replace PyXXX_Length calls with PyXXX_Size callsJeremy Hylton2000-07-121-1/+1
|
* ANSI-fyingPeter Schneider-Kamp2000-07-101-2/+0
| | | | | added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
* Removed Py_PROTO, ANSI-fied sources.Fred Drake2000-07-081-187/+68
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick <trentm@activestate.com>:Fred Drake2000-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The common technique for printing out a pointer has been to cast to a long and use the "%lx" printf modifier. This is incorrect on Win64 where casting to a long truncates the pointer. The "%p" formatter should be used instead. The problem as stated by Tim: > Unfortunately, the C committee refused to define what %p conversion "looks > like" -- they explicitly allowed it to be implementation-defined. Older > versions of Microsoft C even stuck a colon in the middle of the address (in > the days of segment+offset addressing)! The result is that the hex value of a pointer will maybe/maybe not have a 0x prepended to it. Notes on the patch: There are two main classes of changes: - in the various repr() functions that print out pointers - debugging printf's in the various thread_*.h files (these are why the patch is large) Closes SourceForge patch #100505.
* Patch from Michael Hudson to fix flatten recursive data structures:Andrew M. Kuchling2000-06-191-5/+8
| | | | | | | | | [mwh21@atrus build]$ ./python >>> import Tkinter >>> l = [] >>> l.append(l) >>> Tkinter._flatten(l) Segmentation fault (core dumped)
* Patch from /F:Andrew M. Kuchling2000-06-181-0/+100
| | | | | | | | | | this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.