3 ms·
Tkinter is awesome, I hope it isn't jettisoned. I haven't found anything that easy to use with a similar Canvas. Being able to add items to a canvas, attach ca
by analognoise 7y ago
Tkinter is awesome, I hope it isn't jettisoned. I haven't found anything that easy to use with a similar Canvas.
Being able to add items to a canvas, attach callbacks to them - without tracking them yourself, setting up the infrastructure for indexes, bounding boxes, all that stuff - I haven't found anything else as easy as Tkinter's Canvas.
If there is something better, I'd love to hear about it.
- DonHopkins 7y agoCome over to the PyCairo side of The Force! It will drawn you in and fill your path with beautiful pixels. https://cairographics.org/pycairo/ https://cairographics.org/pycairo/ You do have a good point about Tk's canvas easy input handling though, which is something Cairo doesn't do. It's just an immediate mode drawing api like PostScript's rendering model or html canvas 2d context. You can pass a pycairo context into C++ Python extensions, and they can go to town with it quite efficiently. https://github.com/SimHacker/micropolis/tree/master/MicropolisCore/src/TileEngine https://github.com/SimHacker/micropolis/tree/master/Micropol... https://github.com/SimHacker/micropolis/blob/master/MicropolisCore/src/TileEngine/src/tileengine.cpp#L377 https://github.com/SimHacker/micropolis/blob/master/Micropol...