From ahaas at airmail.net Wed Apr 11 01:10:45 2007 From: ahaas at airmail.net (Art Haas) Date: Tue, 10 Apr 2007 18:10:45 -0500 Subject: [PythonCAD] Lots of updates at repo - initial rework of command handling Message-ID: <20070410231045.GF568@artsapartment.org> Hi. I'm pleased to say I've come up with what looks to be a good approach in getting commands working again within PythonCAD. Not all the current commands have been adjusted yet, but you can type things like 'hcl', 'vcl', 'cir' and other various drawing and editing commands and things work. The existing command handling code has relied on code in the 'Generic' directory executing code in the 'Interface/Gtk' directory. This approach worked for a while but makes the command handling code interface specfic. The new approach is interface neutral, a definite plus. The approach now used is built around the messaging system and, in particular, the 'tool_changed' message now sent out by an Image class instance. In short, a Tool instance is placed in an Image via setTool(), then the 'tool_changed' message is sent out. The interface code then can receive and handle this message, which is what happens in the GTKImage class instance. There are lots of changes to the code in both the 'Generic' and 'Interface/Gtk' directories. If you do an 'svn update' you'll get all the changes and help me test things out. Look at the 'prompt.py' file for the valid commands - also look at 'keywords.py' to see how they can be invoked. Expect more changes in the next few days as I convert more code to the new approach and get more commands working again. And, as always, Let me know of any errors you find. 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 From ahaas at airmail.net Thu Apr 19 00:51:02 2007 From: ahaas at airmail.net (Art Haas) Date: Wed, 18 Apr 2007 17:51:02 -0500 Subject: [PythonCAD] More updates at repo Message-ID: <20070418225102.GF3363@artsapartment.org> Hi. A few more changes are available at the repo - a few more commands work again as well as new commands 'adim', 'hdim', 'ldim', 'rdim' and 'vdim' which are used to create Dimension entities. Just 'svn update' and you'll get these changes. 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 From ahaas at airmail.net Sun Apr 22 14:47:06 2007 From: ahaas at airmail.net (Art Haas) Date: Sun, 22 Apr 2007 07:47:06 -0500 Subject: [PythonCAD] Subversion updated at repo Message-ID: <20070422124706.GD1960@artsapartment.org> Hi. I've updated the Subversion binary at the repo. Please let me know of any problems you find accessing the PythonCAD code. 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