Hi everybody,

I have 2 treeviews contained in a hbox.
I create 2 popup menu.

I connect a signal when the right button of mouse is pressed for the first treeview: self.__treeview.connect('button_press_event', self.on_treeview_button_press_event)
and then for the second:
self.list.connect("button_press_event", self.on_nupletList_button_press_event)

In the first callback on_treeview_button_press_event, i detect right click.
And then i display the treeviewpopupmenu with popup().

In the second callback on_nupletList_button_press_event, i detect right click..
And then i display the listpopupmenu with popup().

Problem is, when i right click on the list, its the treeview popup menu wich is displayed.
Has anyone have a solution?

Clues can be:
- The button press event is linked to the window. So we can't have two button_press_event signal without interference. - perhaps the size request for the treeview is too big and then the treeview covers the list.

Thanks a lot,
Philippe





_______________________________________________
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