[pygtk] Right-click in a treeview header

John Pye john.pye at student.unsw.edu.au
Sat Jan 6 15:40:41 WST 2007


Hi all,

I have a grid of data values in a fairly simple gtk.TreeView. I want to
add a right-click menu to the header of each column of my TreeView so
that I can implement some simple column-based outputting such as
plotting a sequence of values.

It seems that that's hard to do though: 
http://piman.livejournal.com/361173.html

I tried the above technique and was able to retrieve the get_ancestor
gtk.Button object, and was able to button.connect("clicked",myhandler)
and make it respond using button.clicked() but when I clicked it 'by
hand', I got no response.

Can anyone suggest what I might be doing wrong here? Could there be some
layer that's intercepting my "clicked" signal that I need to disable
somehow?

Cheers
JP
-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia.
john.pye AT student DOT unsw.edu.au



More information about the pygtk mailing list