Added drawing functionality - both line and smooth

This commit is contained in:
Skyler Lehmkuhl
2012-01-11 14:27:05 -05:00
parent 9e6f7f8dec
commit d2f01601ce
2 changed files with 91 additions and 0 deletions
+6
View File
@@ -85,6 +85,12 @@ def onMouseUpGroup(self, x, y):
self.clicked = False
if svlgui.MODE in ["r", "e"]:
self.cshape = None
elif svlgui.MODE=="p":
print len(self.cshape.shapedata)
self.cshape.shapedata = misc_funcs.simplify_shape(self.cshape.shapedata, "curve",1)
print len(self.cshape.shapedata)
self.cshape = None
MainWindow.stage.draw()
def onMouseUpObj(self, x, y):
self.clicked = False
def onMouseMoveGroup(self, x, y):