RE: [pygtk] Control + Click in Tree view

2005-04-20 Thread Hussein Vastani
hooking it to button_press_event worked for me. Thanks :)

-h


>= Original Message From Christian Robottom Reis <[EMAIL PROTECTED]> =
>On Fri, Apr 15, 2005 at 02:34:15PM -0400, Hussein Vastani wrote:
>> How do I know if a Cntrl + Click was pressed in a treeview?
>
>Look at
>
>http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq05.005.htp
>
>I _believe_ it's just a matter of hooking to button_press_event (instead
>of key_press_event) -- the control mask should be set on the event,
>regardless.
>
>I think there is another option you can use by inspecting the gdk window
>and then checking to see if control is pressed -- Gustavo, do you
>remember how this is done?
>
>Take care,
>--
>Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Control + Click in Tree view

2005-04-19 Thread Christian Robottom Reis
On Fri, Apr 15, 2005 at 02:34:15PM -0400, Hussein Vastani wrote:
> How do I know if a Cntrl + Click was pressed in a treeview?

Look at

http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq05.005.htp

I _believe_ it's just a matter of hooking to button_press_event (instead
of key_press_event) -- the control mask should be set on the event,
regardless. 

I think there is another option you can use by inspecting the gdk window
and then checking to see if control is pressed -- Gustavo, do you
remember how this is done?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/