[PythonCAD] Execution path
Russell Shaw
rjshaw at netspace.net.au
Wed Sep 1 19:00:11 CEST 2004
Art Haas wrote:
> On Thu, Sep 02, 2004 at 02:23:42AM +1000, Russell Shaw wrote:
>
>>Hi,
>>I had a look thru more of the code, but can't see the forest thru
>>the trees....
...
>>I click the second point and the rectangle is drawn.
>
>
> Success! Adding the rectangle to the drawing is really just adding four
> segments. Look at the create() method in the RectangleTool class in the
> file 'Generic/Tools.py'.
>
>
>>I have lots of ideas for lots of cad programs, but am wondering
>>about what 'architecture' to use.
>
>
> Hope this info helps. When I started on the program, I looked at a
> number of drawing programs to try and figure out how they handled
> interaction with the user. The Gimp was helpful, though it is quite a
> task to find where in the code various events get set and unset, and how
> the handler gets invoked.
>
> Art Haas
Thanks, you make it look easy:)
Atleast now i have seen one alternative way of handling
drawing context. I have a different way in my current program,
but it's currently very broken because i didn't know enough
about gtk/gobject/gtk-threads at the time.
More information about the PythonCAD
mailing list