You need to connect to the button_press_event signal, which will get
called every time a button press event occurs. You can then check if the
type attribute of the event object (passed in as the second argument) is
GDK._2BUTTON_PRESS for double clicks. The button attribute will tell you
which mouse button was pressed.
To find which row was clicked on, use the GtkCList.get_selection_info()
method. As arguments, pass in event.x and event.y (the button press
location). It will return a (row, column) tuple if the click was on a
cell, or None if it wasn't (ie. a column header).
This should give you enough flexibility to catch any sort of clicks on the
clist.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Wed, 7 Jul 1999, Fred L. Drake wrote:
>
> I'd like to be able to catch things like double-click and
> mouse-button-3-press on widgets like the CTree. Is there a signal I
> should connect to, or do I have to do something at a lower level?
> (I guess my past with Tkinter is showing. ;)
> Thanks!
>
>
> -Fred
>
> --
> Fred L. Drake, Jr. <[EMAIL PROTECTED]>
> Corporation for National Research Initiatives
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]