index 22c8633f05ea4ed3d1db6e5658d3c428b74cd11f..81945f370e409ab6c411c142b407c807bb968ef5 100644 (file)
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-'''\r
+'''
import inkex
import simplestyle, sys
def draw_SVG_tri( (x1, y1), (x2, y2), (x3, y3), (ox,oy), width, name, parent):
style = { 'stroke': '#000000', 'stroke-width':str(width), 'fill': 'none' }
tri_attribs = {'style':simplestyle.formatStyle(style),
- 'inkscape:label':name,
+ inkex.addNS('label','inkscape'):name,
'd':'M '+str(x1+ox)+','+str(y1+oy)+
' L '+str(x2+ox)+','+str(y2+oy)+
' L '+str(x3+ox)+','+str(y3+oy)+
draw_tri_from_3_sides(s_a, s_b, s_c, offset, tri)
-e = Grid_Polar()
-e.affect()
+if __name__ == '__main__':
+ e = Grid_Polar()
+ e.affect()
+
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99