Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aabdb0d

Browse files
committed
Dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.
1 parent 4e6d09e commit aabdb0d

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

Mac/Build/_dummy_tkinter.mcp

48.5 KB
Binary file not shown.

Mac/Build/_dummy_tkinter.mcp.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
init_tkinter

Mac/Modules/_dummy_tkinter.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
}

0 commit comments

Comments
 (0)