Trigger pygtk drawingarea redraw

2005-07-28 Thread ch424
Hi, Does anybody know the fastest way to trigger a DrawingArea redaw in pygtk? At the moment, I'm using a bit of a hack: def redraw(self): self.area.hide() self.area.show() Is there a better way to trigger a redraw? This causes flickering when the window gets bigger than 400x400 pixels,

Re: Trigger pygtk drawingarea redraw

2005-07-28 Thread ch424
Ahh.. fantastic! Flickers be gone! Yaarrrg! It was self.area.queue_draw() in case anyone wants to know. :) Thanks so much! Alex -- http://mail.python.org/mailman/listinfo/python-list

pygtk - scale widget events

2005-07-27 Thread ch424
Hi I'm trying to make a zooming in/out slider, but I want to make it re-center when I let go of the mouse button on it -- i.e. it starts with a value of 1 (in the center of the slider), then the user can drag it to the right or left, while it does UPDATE_CONTINUOUS, but when the user lets go, I

Re: Extending python - undefined symbol error on import

2005-07-25 Thread ch424
Sweet! It works! *dances* Thank you so much -- and for the explanation! For anyone searching for this, I had to change the respective lines to: module1 = Extension('gpibmodule', libraries = ['gpibapi'], sources = ['gpibmodule.c']) just as Daniel said. Thanks

Extending python - undefined symbol error on import

2005-07-22 Thread ch424
Hi there, I'm using Python 2.4.1 on Ubuntu Linux, and I'm having problems extending python in C: The C code is below: #include Python.h #include ni488.h static PyObject * gpib_hello(PyObject *self, PyObject *args) { char *command; int *secondarg; // int sts; if