Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Jean-Baptiste Cazier
Sæl ! I tried my example but without any sucess as the area is not suppose to have that method ! Traceback (most recent call last): File ./ldraw2.py, line 2884, in area_expose_cb area.window.signal_handler_block(self.signal_id) AttributeError: 'gtk.gdk.Window' object has no attribute

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Christian Robottom Reis
On Mon, Dec 08, 2003 at 09:50:30AM +, Jean-Baptiste Cazier wrote: I tried my example but without any sucess as the area is not suppose to have that method ! Traceback (most recent call last): File ./ldraw2.py, line 2884, in area_expose_cb

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Jean-Baptiste Cazier
Sael ! Thanks again for the interest you give to my development :) As I stated in my e-mail I started with the area itself without sucess. Then I tried with its associated window, but none of them have the block event installed But I realise I put the wrong output line in my e-mail :( area

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Christian Robottom Reis
On Mon, Dec 08, 2003 at 12:47:39PM +, Jean-Baptiste Cazier wrote: But I realise I put the wrong output line in my e-mail :( area expose cb GdkRectangle at 0x81fa890 0 __main__.DrawingArea instance at 0x863e97c GdkEvent at 0xbfffdaa0 gtk.DrawingArea object (GtkDrawingArea) at 0x8513c04

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Jean-Baptiste Cazier
Indeed I found there the handler_block command which actually exists However it did not solve my problem at all I even tried to the more direct disconnect at start and re-connection at the end of the routine but without further success I am quite disappointed I simply do not understand why the

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Christian Robottom Reis
On Mon, Dec 08, 2003 at 01:24:41PM +, Jean-Baptiste Cazier wrote: Indeed I found there the handler_block command which actually exists However it did not solve my problem at all Hmm. Do you mean that even with handler_block() your callback is triggered by an expose-event? That's quite odd.

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Gustavo J. A. M. Carneiro
A Sex, 2003-12-05 às 18:13, Jean-Baptiste Cazier escreveu: hi ! After further investigation it seems that the routine called by my expose_event signal is generating itself new expose_event... To avoid that effect I would like to block the signal when entering the routine and unblock it

Re: [pygtk] High CPU with expose-event

2003-12-08 Thread Jon Anderson
On Monday 08 December 2003 10:37 am, Gustavo J. A. M. Carneiro wrote: . This would be a Bad Idea (TM)! Anyway, an alternative to signal handler blocking, which doesn't seem to be working (I read down the thread), would be a simple trick of locking: def area_expose_cb(self, area,

Re: [pygtk] High CPU with expose-event

2003-12-05 Thread Christian Robottom Reis
On Fri, Dec 05, 2003 at 06:13:06PM +, Jean-Baptiste Cazier wrote: After further investigation it seems that the routine called by my expose_event signal is generating itself new expose_event... That's definitely not a good thing :-) To avoid that effect I would like to block the signal