[PythonCAD] Stretch/Move operations and keyboard input

Art Haas ahaas at airmail.net
Thu Jun 30 21:14:28 CEST 2005


I've added some entry-event handling code that allows you to define
the distance in an two-point move operation from the entry box at the
bottom of the screen. After selecting the 'Two-point Move' menu
the prompt reads 'Click in the drawing area or enter the x and y
distances'. You must specify both the x and y values at the same
time, and you do this either as two values separated by a comma
like '20.5, 40.5', or you can enter the values in tuple form like
(20.5, 40.5). Don't put the tuple in quotes, however.

Also, the ability to do an x/y stretch operation has been missing, but
no longer. The 'Two-point Stretch' menu now works, and like the
similar two-point move you can specify the stretch distance either with
two mouse clicks or via the entry box.

If you're getting the code via Subversion just do 'svn update' and
you'll get these changes.

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

More information about the PythonCAD mailing list