I’m making a little raster editor in wxPython and I’ve come across some trouble. I’m able to paint tools such as brushes and fill no problem, because they are drawn onto my buffer directly. Tools I’m having trouble with are lines, circles, and the likes, because they should be temporarily drawn to the screen - and only drawn to the buffer once the mouse is let go. I’ve been stuck on this problem for quite some time now, having tried so many methods and failed them all, so now I come to you nice people. I’d really appreciate it if you could tell me what I’m doing wrong.
I have attatched my program to this message. As you can see, the line tool creates huge amounts of flickering, and doesn’t even work properly. I’d really like it to be smooth with the buffer. Well, thanks in advance to anyone who helps!
test.py (1.47 KB)