First time pygoocanvas user



Hello,

I have been developing an application that is basically a glorified
paint program, allowing the user to draw a few shapes with the mouse (as
well as lines). For a few days i have been stumped on how to get an
"eraser" tool to work. I assume that it would be much like the drawing
tools, only triggered when the mouse hits an item that the user has
drawn using the enter_notify_event when the user has the eraser tool
selected.

I am however having a hard time, figuring out how to modify the item the
mouse comes into contact with. I know how to setup the event, but i am
unsure on what to edit or how to go about doing it. The pygoocanvas
examples that i have looked at, mostly deal with pure drawing, and
nothing to do with "erasing" part of an item (if there is an example,
please say so and i can go out on the net and read about it). I have
also had no luck with google searches on the subject.

Has anybody on the list have experience in doing such an operation with
pygoocanvas? Am i going about it in the wrong way? Any suggestions would
be great!

Thanks in advance,

-Nick


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]