blob: 6faab9171ea3ad49042f8fbde0f97966367deb44 [file] [log] [blame]
Jack Jansenaabdb0d2001-03-20 23:29:41 +00001
2/* Dummy _tkinter module for use with Carbon. Gives (slightly) better error
3 * message when you try to use Tkinter.
4 */
5
6/* Xxo objects */
7
8#include "Python.h"
9
10
11/* List of functions defined in the module */
12
13static PyMethodDef xx_methods[] = {
14 {NULL, NULL} /* sentinel */
15};
16
17
18
19DL_EXPORT(void)
20init_tkinter(void)
21{
22 PyObject *m;
23
24 /* Create the module and add the functions */
25 m = Py_InitModule("_tkinter", xx_methods);
26
27 PyErr_SetString(PyExc_ImportError, "Tkinter not supported under Carbon (yet).");
28}