summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/_dummy_tkinter.c
blob: 6faab9171ea3ad49042f8fbde0f97966367deb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

/* Dummy _tkinter module for use with Carbon. Gives (slightly) better error
 * message when you try to use Tkinter.
 */

/* Xxo objects */

#include "Python.h"


/* List of functions defined in the module */

static PyMethodDef xx_methods[] = {
	{NULL,		NULL}		/* sentinel */
};



DL_EXPORT(void)
init_tkinter(void)
{
	PyObject *m;

	/* Create the module and add the functions */
	m = Py_InitModule("_tkinter", xx_methods);

	PyErr_SetString(PyExc_ImportError, "Tkinter not supported under Carbon (yet).");
}