1 // -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
5 #include "screeninfo.h"
11 #include "timerqueue.h"
12 #include "imagecontrol.h"
17 static PyMethodDef otk_methods[] = {
18 // {"new_noddy", noddy_new_noddy, METH_VARARGS,
19 // "Create a new Noddy object."},
24 void initotk(char *display)
26 OtkRect_Type.ob_type = &PyType_Type;
27 OtkDisplay_Type.ob_type = &PyType_Type;
28 OtkScreenInfo_Type.ob_type = &PyType_Type;
29 OtkColor_Type.ob_type = &PyType_Type;
30 OtkFont_Type.ob_type = &PyType_Type;
31 OtkTimer_Type.ob_type = &PyType_Type;
32 OtkImageControl_Type.ob_type = &PyType_Type;
34 Py_InitModule("otk", otk_methods);
36 OtkTimerQueue_Initialize();
37 OtkDisplay_Initialize(display);
39 OtkGCCache_Initialize();