On Mon, 15 May 2000, Luca Minuti wrote:
> I havn't found a "double click" signal to use with the connect method.
> If true, how can I handle a double click over an item of a GtkCList?
>
> I have another problem, I need a subclass of GtkCList that fire a
> custom signal under certain condition, but I don't know how to create
> new signal.
You want button_press_event, and check to see if the event's type is
GDK._2BUTTON_PRESS. Here is the code:
def button_press_handler(widget, event):
if event.type == GDK._2BUTTON_PRESS:
handle_double_click()
return TRUE
>
> Thanks,
> Luca.
>
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]