[pygtk] button-press-event on a TreeViewColumn Header?

Alessandro Dentella sandro at e-den.it
Wed Jun 17 17:35:48 WST 2009


On Wed, Jun 17, 2009 at 11:22:45AM +0200, Roberto Cavada wrote:
> Alessandro Dentella wrote:
> 
> >   but box_clicked_cb is never called. Why that?
> 
> 
> Use 'clicked' signal, after enabling it:
> 
> col = gtk.TreeViewColumn(...)
> col.set_clickable(True)
> col.connect("clicked", self.on_col_clicked)


That's what I'm using now.
'clicked' beahaves as button-release. I want button-press.

It pops a menu and is more natural to have menus popped when you press, not
when you release...


sandro
*:-)


More information about the pygtk mailing list