It seems I can use
canvas.box_group.set_data()
canvas.box_group.get_data()
To attach misc. variables to the group, which will then be transferred to the
event handler. Is this the best way to do this?
"J.W. Bizzaro" wrote:
>
> 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]
--
J.W. Bizzaro mailto:[EMAIL PROTECTED]
Boston College Chemistry http://www.uml.edu/Dept/Chem/Bizzaro/
--
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]