Drag, add, remove points from a plot with the mouse

Hi all,

I am trying to create a class to edit the points of a plot based on
the poly_editor.py example. However, I have very little experience
with even handling and I need some help.

Here is what I did so far, the "toggle" on/off works fine. Also I
believe that actions "press", "release", "insert", "delete" are OK.
However, I am stuck at the drawing part of the problem.

if anyone have an example of that to share or it you want to check
what I made so far:

http://dl.dropbox.com/u/4411725/point_editor.py

Thanks, Filipe.

After some modifications and manual reading I got "insert" point and
"delete" point working, but I still cannot make the "drag" point
work...

-Filipe

···

On Wed, Sep 12, 2012 at 4:04 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@...287...> wrote:

Hi all,

I am trying to create a class to edit the points of a plot based on
the poly_editor.py example. However, I have very little experience
with even handling and I need some help.

Here is what I did so far, the "toggle" on/off works fine. Also I
believe that actions "press", "release", "insert", "delete" are OK.
However, I am stuck at the drawing part of the problem.

if anyone have an example of that to share or it you want to check
what I made so far:

http://dl.dropbox.com/u/4411725/point_editor.py

Thanks, Filipe.

OK, a little bit more of manual reading I got the "drag point"
working. Now, even though it works, I would like the opinion of
someone with more experience on event handling to improve that.

Thanks, Filipe

···

On Wed, Sep 12, 2012 at 6:14 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@...287...> wrote:

After some modifications and manual reading I got "insert" point and
"delete" point working, but I still cannot make the "drag" point
work...

-Filipe

On Wed, Sep 12, 2012 at 4:04 PM, Filipe Pires Alvarenga Fernandes > <ocefpaf@...287...> wrote:

Hi all,

I am trying to create a class to edit the points of a plot based on
the poly_editor.py example. However, I have very little experience
with even handling and I need some help.

Here is what I did so far, the "toggle" on/off works fine. Also I
believe that actions "press", "release", "insert", "delete" are OK.
However, I am stuck at the drawing part of the problem.

if anyone have an example of that to share or it you want to check
what I made so far:

http://dl.dropbox.com/u/4411725/point_editor.py

Thanks, Filipe.