Apparently the code to forestall Tk eating events was too aggressive (Tk user input...
[python/dscho.git] / PC / example_nt / example.c
blob63682f11f07b84550147017caefc6cdeb116d328
1 #include "Python.h"
3 static PyObject *
4 ex_foo(PyObject *self, PyObject *args)
6 printf("Hello, world\n");
7 Py_INCREF(Py_None);
8 return Py_None;
11 static PyMethodDef example_methods[] = {
12 {"foo", ex_foo, 1, "foo() doc string"},
13 {NULL, NULL}
16 void
17 initexample(void)
19 Py_InitModule("example", example_methods);