Re: [pygtk] Question about idle_add() and refreshing some widget..

2003-09-29 Thread Christian Reis
On Sun, Sep 28, 2003 at 01:56:38PM -0300, alejandro david weil wrote: I have a bitmap that is the background, and something like-sprites to draw. I think that is better to draw sprites, in this way: draw them on a new frresh bitmap than, remember what them have overwritten, draw that back and

Re: [pygtk] Question about idle_add() and refreshing some widget..

2003-09-28 Thread Christian Reis
On Sat, Sep 27, 2003 at 07:36:29AM -0300, alejandro david weil wrote: And also I'm not sure if using that is the right way to do the things. Maybe this question is more gtk-related than pygtk. Well, anyway, I think that with idletimeout implementation that I did, the cpu wasting I have is

[pygtk] Question about idle_add() and refreshing some widget..

2003-09-27 Thread alejandro david weil
Hi! I'm making a program that has only a widget that's a GtkDrawingArea. In that widget I draw my own objects. Well, I want it to be refreshed as fast to produce some smooth efect in the objects that are moving inside. For drawing the objects inside i've put a expose callback function. And,