[Python-checkins] r67296 - sandbox/trunk/tkinter-polo/src/_tkinter.c
guilherme.polo
python-checkins at python.org
Thu Nov 20 16:47:45 CET 2008
Author: guilherme.polo
Date: Thu Nov 20 16:47:45 2008
New Revision: 67296
Log:
* Removed module methods that would check for a tcl_lock, now they are only
accessible after creating a tcl interpreter with _tkinter.create;
Modified:
sandbox/trunk/tkinter-polo/src/_tkinter.c
Modified: sandbox/trunk/tkinter-polo/src/_tkinter.c
==============================================================================
--- sandbox/trunk/tkinter-polo/src/_tkinter.c (original)
+++ sandbox/trunk/tkinter-polo/src/_tkinter.c Thu Nov 20 16:47:45 2008
@@ -2723,7 +2723,7 @@
return Py_None;
}
-
+
/**** Tkapp Method List ****/
static PyMethodDef Tkapp_methods[] =
@@ -2769,7 +2769,6 @@
};
-
/**** Tkapp Type Methods ****/
static void
@@ -2904,11 +2903,11 @@
context.maxsize = PySequence_Size(item);
if (context.maxsize <= 0)
return PyTuple_New(0);
-
+
context.tuple = PyTuple_New(context.maxsize);
if (!context.tuple)
return NULL;
-
+
context.size = 0;
if (!_flatten1(&context, item,0))
@@ -2990,19 +2989,13 @@
{
{"_flatten", Tkinter_Flatten, METH_VARARGS},
{"create", Tkinter_Create, METH_VARARGS},
-#ifdef HAVE_CREATEFILEHANDLER
- {"createfilehandler", Tkapp_CreateFileHandler, METH_VARARGS},
- {"deletefilehandler", Tkapp_DeleteFileHandler, METH_VARARGS},
-#endif
- {"createtimerhandler", Tkapp_CreateTimerHandler, METH_VARARGS},
- {"mainloop", Tkapp_MainLoop, METH_VARARGS},
{"dooneevent", Tkapp_DoOneEvent, METH_VARARGS},
{"quit", Tkapp_Quit, METH_VARARGS},
{"setbusywaitinterval",Tkinter_setbusywaitinterval, METH_VARARGS,
setbusywaitinterval_doc},
{"getbusywaitinterval",(PyCFunction)Tkinter_getbusywaitinterval,
METH_NOARGS, getbusywaitinterval_doc},
- {NULL, NULL}
+ {NULL, NULL}
};
#ifdef WAIT_FOR_STDIN
More information about the Python-checkins
mailing list