I even tried to use a custom class:
  class MyTreeviewColumn(gtk.TreeViewColumn, gtk.EventBox):
    def __init__(self, *args):
      gtk.TreeViewColumn.__init__(self, *args)
      gtk.EventBox.__init__(self)
      self.connect('button-press-event', self.buttonPress)

But it doesn't detect 'button-press-event'.

Would be the header of treeview was accessible as a separate widget,
or the TreeViewColums was a gtk.Widget not only a gtk.Object! :-D

The only way that I found is that: if you don't need to resize columns,
simply ignore the header of treeview(and make it invisible), and use
the first row of treeview as its header. And maybe change the color of
that first row, and maybe define the sorting of rows manually (when clicked
on the first row)...
Seems there is not a better way!!
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to