Popular recipes by David Corne http://code.activestate.com/recipes/users/4185735/2013-03-18T14:49:16-07:00ActiveState Code RecipesGeometry class for Tkinter (Python)
2013-03-18T14:49:16-07:00David Cornehttp://code.activestate.com/recipes/users/4185735/http://code.activestate.com/recipes/578494-geometry-class-for-tkinter/
<p style="color: grey">
Python
recipe 578494
by <a href="/recipes/users/4185735/">David Corne</a>
(<a href="/recipes/tags/tkinter/">tkinter</a>, <a href="/recipes/tags/ui/">ui</a>).
Revision 2.
</p>
<p>An easily extensible class, inheriting from Canvas, which can be used to define geometry in a more mathematical way. So rather than specify a circle from 2 points you give a radius and a centre. These could have colour as a keyword argument but personally I always want to specify the colour.</p>