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

Alessandro Dentella sandro at e-den.it
Wed Jun 17 18:25:52 WST 2009


On Wed, Jun 17, 2009 at 02:08:00PM +0400, ilya korcdmk wrote:
> Maybe you need to add event to catch button press with
>
> col.add_events(gtk.gdk.BUTTON_PRESS_MASK)

thanks for the hint but it doesn't work

    column.add_events(gtk.gdk.BUTTON_PRESS_MASK)
AttributeError: 'gtk.TreeViewColumn' object has no attribute 'add_events'

On the other hand, I already added a widget (EventBox) as header of the
column and Im connecting directly to the EventBox, so why should the
column sensitivness be implied?


sandro
*:-)


More information about the pygtk mailing list