1
/* cplplotcanvasmodule - C python wrapper for the plplotcanvas
3
Copyright (C) 2004, 2005 Thomas J. Duck
6
Thomas J. Duck <tom.duck@dal.ca>
7
Department of Physics and Atmospheric Science,
8
Dalhousie University, Halifax, Nova Scotia, Canada, B3H 3J5
13
This library is free software; you can redistribute it and/or
14
modify it under the terms of the GNU Lesser General Public
15
License as published by the Free Software Foundation; either
16
version 2.1 of the License, or (at your option) any later version.
18
This library is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
Lesser General Public License for more details.
23
You should have received a copy of the GNU Lesser General Public
24
License along with this library; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
29
#include <pygobject.h>
31
#define PY_ARRAY_UNIQUE_SYMBOL plplotcanvasapi
32
#include "Numeric/arrayobject.h"
34
void cplplotcanvas_register_classes (PyObject *d);
35
extern PyMethodDef cplplotcanvas_functions[];
38
initcplplotcanvas(void)
44
m = Py_InitModule ("cplplotcanvas",cplplotcanvas_functions);
45
d = PyModule_GetDict (m);
47
cplplotcanvas_register_classes (d);
51
if (PyErr_Occurred ()) {
52
Py_FatalError ("can't initialise module cplplotcanvas");