Frédéric wrote:
> I have a special widget, based on a DrawingArea, which displays pictures
> positions for a panoamic head. See:
> 
> In 'pause' mode, I would like to allow the user to select a previous
> shooting position by clicking on the wanted position... How can I do
> that? What is the mecanism to get the user click position on that area?
> How to bind to a custom callback?

In the scribble tutorial example (appendix B), they use

drawing_area.connect("button_press_event", button_press_event)

with a function

def button_press_event(widget, event):
    ...


Sincerely,
Albert

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to