문제

I'm trying to make a paint tool in wxpython. and i couldn't find a way to make an ( Eraser ) . how can i make an eraser tool - just like the one in windows paint - in wxpython ? please help .
the idea or small code sample would be very helpful


thanks in advance

도움이 되었습니까?

해결책

Have you made a Pen tool? Just set its colour to the canvas' background colour ;)

by the way I actively develop my own wxpython painting program that you may want to check out; see http://code.google.com/p/whyteboard/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top