[pygtk] DrawingArea user feedback
A.T.Hofkamp
a.t.hofkamp at tue.nl
Tue Nov 18 00:18:19 WST 2008
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
More information about the pygtk
mailing list