py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Modules / _dummy_tkinter.c
blob6faab9171ea3ad49042f8fbde0f97966367deb44
2 /* Dummy _tkinter module for use with Carbon. Gives (slightly) better error
3 * message when you try to use Tkinter.
4 */
6 /* Xxo objects */
8 #include "Python.h"
11 /* List of functions defined in the module */
13 static PyMethodDef xx_methods[] = {
14 {NULL, NULL} /* sentinel */
19 DL_EXPORT(void)
20 init_tkinter(void)
22 PyObject *m;
24 /* Create the module and add the functions */
25 m = Py_InitModule("_tkinter", xx_methods);
27 PyErr_SetString(PyExc_ImportError, "Tkinter not supported under Carbon (yet).");