Jack Jansen | aabdb0d | 2001-03-20 23:29:41 +0000 | [diff] [blame] | 1 | |
| 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 | |
| 13 | static PyMethodDef xx_methods[] = { |
| 14 | {NULL, NULL} /* sentinel */ |
| 15 | }; |
| 16 | |
| 17 | |
| 18 | |
| 19 | DL_EXPORT(void) |
| 20 | init_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 | } |