Logo Search packages:      
Sourcecode: galago-gtk-python version File versions  Download package

galago-gtkmodule.c

#include <pygobject.h>
#include <pygtk/pygtk.h>

void pygalago_gtk_register_classes(PyObject *d);
extern PyMethodDef pygalago_gtk_functions[];

DL_EXPORT(void)
initgtk(void)
{
      PyObject *m, *d;

      init_pygobject();
      init_pygtk();

      m = Py_InitModule("galago.gtk", pygalago_gtk_functions);
      d = PyModule_GetDict(m);

      pygalago_gtk_register_classes(d);
      pygalago_gtk_add_constants(m, "GALAGO_GTK_");

      if (PyErr_Occurred()) {
            Py_FatalError("can't initialize module galago.gtk");
      }
}

Generated by  Doxygen 1.6.0   Back to index