On Sun, 15 Apr 2001, David Robertson wrote:

> 
> First off, thanks for the help on GtkTree. I switched to a 1 column GtkCTree
> and made it work well.
> 
> On to the new problem:
> 
> glib 1.2.8
> gtk 1.2.8
> python 1.5.2
> 
> I am trying to figure how to check if the right mouse button is pressed
> using:
> GdkEvent.type
> 
> here is what I get:
> left mouse button pressed = 4
> left mouse button released = 7
> right mouse button pressed = 4
> right mouse button released = 7
> (whick in GDK.py means button pressed and released)

A button_press_event will be emitted when any button is pressed.  Look at
event.button to see the number of the button pressed.  1 is left and 3 is
right.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to