Hi,

I am doing in a canvas-derived class something like this:

self.connect("button_press_event", self.handle_events)

where handler is:

    def handle_events(self, widget, vars):
        print type(vars)
        return FALSE

I hoped this way to get more info on how to use that signal.

Now my question:

How in the heavens would I know from vars, which in my case happen to 
be:
<type 'GdkEvent'>
which mouse button was pressed!

All three button presses give same type!!!!


Thanks and sorry if this is dumb!




To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to