Hi. Not much mail on the list lately, so I thought I'd send something out.
I've been working on the code responsible for drawing the various entities, and feel like I'm making a bit of progress. Currently the code for drawing is spread around in a couple of files - gtkimage.py, gtktext.py, and gtkdimension.py, plus code in other 'gtk' files as well. What I'm planning to do is consolidate a good bit of the code into the new 'gtkinit.py' file, and also add in draw() and erase() methods to the various entities. The horrible draw_layer() code in the gtkimage.py will eventually go away once the new code works like I want. Also, it is time to address the inelegant way that the program handles the drawing of newly added entities or the deletion of an entity. Currently the DrawingArea widget is repainted by first filling it with the designated background color, and then all the entities in the drawing are redrawn. As this code is some of the earliest PyGTK code I wrote, the lack of a better approach is due to inexperience. I'm added draw() and erase() methods for many of the basic entities, and I'm working on the text drawing now. I'm trying to be a little more clever about things than the current code in gtktext.py, so things are hitting a rough patch. Once again the difficulty in scaling the text is rearing its ugly head, and also the desire to utilize the same draw() routine for displaying the text in dimensions makes for a challenge. I've fixed a number of bugs in the code, some new and some longstanding, and have sent these fixes to the public repository. Also, the subversion binary on that machine was updated recently, so anyone having trouble accessing the repo may want to grab the latest 1.1.X release, or even better get the development code for what will be the 1.2.0 release, as that is what is running on the machine. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 _______________________________________________ PythonCAD mailing list [email protected] http://mail.python.org/mailman/listinfo/pythoncad
