I want to write a Python/Gtk/Glade application that uses a
C/C++ extension to render images of weather radar data.
Given that I'm rasterizing large amounts of polar coordinate
data, I'm quite certain that I need to do the calculations
in C/C++, rather than in Python.)
1) Which type of widget is best to use to contain these
rendered images?
Should I use a GtkPlotCanvas?
2) What's the simplest way to pass a pointer to the Gtk
window to my C/C++ extension?
It looks like I can pass "self._o" to my extension, and
then my extension would have the form:
static PyObject *_wrap_MyDraw(PyObject *self, PyObject
*args) {
PyObject *canvas;
if (!PyArg_ParseTuple(args, "O!:MyDraw", &PyGtk_Type,
&canvas))
return NULL;
MyDraw(GTK_PLOT_CANVAS(PyGtk_Get(canvas)));
Py_INCREF(Py_None);
return Py_None;
}
Is there any simpler way of doing this?
Thanks much!
--
Joe VanAndel
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: [EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk