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 while leaving
but I have problem transferring the event id through the routine itself and to knwo to 
what I should apply it to
How should i use signal_handler_block ?

I would like to do somethhing like 
...
    self.area = gtk.DrawingArea()
    self.area.add_events(gtk.gdk.POINTER_MOTION_MASK)
    self.area.add_events(gtk.gdk.BUTTON_RELEASE_MASK)
    self.area.add_events(gtk.gdk.BUTTON_PRESS_MASK )
    singal_id=self.area.connect("expose-event", self.area_expose_cb)
    print "id is ", signal_id
...

    def area_expose_cb(self, area, event):
      """ Update the DrawingArea """

      area.signal_handler_block(signal_id)
      ...
      Do something on the Drawing Area
      ...
      area.signal_handler_unblock(signal_id)  
      return gtk.TRUE
 
Any help would be appreciated

Takk

Jean-Baptiste

-- 
-----------------------------
[EMAIL PROTECTED]

Department of Statistics
deCODE genetics     Sturlugata,8
570 2993          101 Reykjav�k

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to