On Wed, Jul 23, 2003 at 06:55:36AM -0700, David Mortensen wrote:

> My question is this:  is there a simple way I can keep the right click event 
> from triggering an "edited" signal?  Is there some other means for getting my 
> desired result (pop-up menu and updates on edits)?

You should be able to prevent the event from propogating by returning
gtk.TRUE from your "button-press-event" callback.

http://tinyurl.com/hvzy

untested code:

def on_button_press_event(self, widget, event):
    if event.type==gtk.gdk.BUTTON_PRESS and event.button==3:
       # do stuff
       return gtk.TRUE

Dave Cook
_______________________________________________
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