Greetings.

I connected an event handler to a gnome canvas.  When an event occurs, the
handler is passed the two default parameters, the canvas item and the event.

    canvas.box_group.connect('event', diagram_box_group_events)
    ...
    def diagram_box_group_events(canvas_item, event):
    ...

If I try to pass another parameter to the handler, say a color, I must specify
all three events.  So

    diagram_box_group_events

becomes

    diagram_box_group_events(...)

But what do I put in there?  I figured the canvas item is canvas.box_group, but
what is the name for the event?  It isn't canvas.box_group.event

Maybe there is a way around this that I'm not seeing.


:-)
Jeff
-- 
J.W. Bizzaro                  mailto:[EMAIL PROTECTED]
Boston College Chemistry      http://www.uml.edu/Dept/Chem/Bizzaro/
--
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to