Some Tkinter Canvas Objects

Brian Elmegaard be at mek.dtu.dk
Tue Apr 17 07:41:06 EDT 2001


s713221 at student.gu.edu.au wrote:
> 
> I've just written a first stab at some code to make moderatly complex
> tkinter canvas objects for a chemistry program, including:
>         Simple Lines
>         Double Lines
>         Triple Lines
>         Wavy Lines
>         Scripted Text (Eg. I sorted out how to make a mixture of
> super-scripted, sub-scripted and normal text on the canvas)
>         Solid Wedges and
>         Stippled Wedges.

Very interesting

> 
> Yes I know about Canvas.py, but it seemed overkill for what I wanted, I
> couldn't use it directly without doing a lot of hacking on poor innocent
> CanvasItem, and disagreed with me on how things should be done. Did
> steal some ideas from it though ;-)

How does this affect the way they may be used on a canvas? I would find
it very nice to see if it is possible to add canvas item types to the
default set.

> However, I do want other people to read my code so I can get some
> suggestions, re. optimisations, generalisations, *grins*
> why-the-hell-did-you-do-it-that-way-isations. And, a little bit of ego
> here, it would be cool if others found my stuff useful to them as well.
> 
Let me see it, please.

-- 
Brian
http://www.et.dtu.dk/energysystems
http://www.rk-speed.dk http://fiduso.dk http://sunsite.auc.dk/dk-tug
\TeX, tak



More information about the Python-list mailing list