> From: Pier <[EMAIL PROTECTED]>
>
> Hi again,
> Ricardo Caesar Lenzi wrote:
>
> >
> > Try this:
> >
> > def on_clist_button_press_event(clist,mousebutton,data):
> > if mousebutton.type==5:
> > print "Double-click!"
> >
> > clist.connect("button_press_event",on_clist_button_press_event)
> >
> > - Ricardo
>
> this does not work because the mousebutton in the previous example returns
> me a gdkEvent object and
> I don't know its structure. Probably it contains the information I need
> but I can't get it
> Can you give me some information about the structure of a GdkEvent object ?
> (a link to some docs is also appreciate)
>
> thanks to all
>
>
> Pier Carteri
> [EMAIL PROTECTED]
I've got the following paramaters for a select_row event (not button
press event) for a clist:
select_cb(widget, row, col, event):
and then use:
if event.type == GDK._2BUTTON_PRESS:
to check for double-clicks.
HTH,
Dave
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk