On Mon, Dec 08, 2003 at 12:47:39PM +0000, 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> > Traceback (most recent call last): > File "./ldraw2.py", line 2884, in area_expose_cb > area.signal_handler_block(self.signal_id) > AttributeError: 'gtk.DrawingArea' object has no attribute 'signal_handler_block' > > Also the area itself does not have the attribute !
That's odd. In the 0.6 line, all GtkObjects have a signal_handler_block() method: >>> a = gtk.GtkDrawingArea() >>> a.connect("expose-event", foo) 1 >>> a.signal_handler_block(1) This seems to have turned into handler_block in GObject: http://www.moeraki.com/pygtkreference/pygtk2reference/class-gobject.html Check it out and see if it gives you the expected results. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/