From: Rowland S. <mon...@us...> - 2004-05-01 18:47:20
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4148a/tools/resourceEditor Modified Files: resourceEditor.py Log Message: Changed .DrawRectangle to .DrawRectanglePointSize. Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.188 retrieving revision 1.189 diff -C2 -d -r1.188 -r1.189 *** resourceEditor.py 30 Apr 2004 16:26:12 -0000 1.188 --- resourceEditor.py 1 May 2004 18:46:55 -0000 1.189 *************** *** 343,347 **** ##print "drawTheRect", rect ##dc.DrawRectangle(rect[0], rect[1], rect[2], rect[3]) ! self.dc.DrawRectangle((position[0], position[1]), (self.startSize[0], self.startSize[1])) ##self.rect = rect self.lastPosition = position --- 343,347 ---- ##print "drawTheRect", rect ##dc.DrawRectangle(rect[0], rect[1], rect[2], rect[3]) ! self.dc.DrawRectanglePointSize((position[0], position[1]), (self.startSize[0], self.startSize[1])) ##self.rect = rect self.lastPosition = position *************** *** 453,457 **** # erase the last rect ! self.dc.DrawRectangle((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) # use the global mouse position and the initial offset and start --- 453,457 ---- # erase the last rect ! self.dc.DrawRectanglePointSize((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) # use the global mouse position and the initial offset and start *************** *** 465,469 **** self.lastPosition[0] = xOffset self.lastPosition[1] = yOffset ! self.dc.DrawRectangle((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) --- 465,469 ---- self.lastPosition[0] = xOffset self.lastPosition[1] = yOffset ! self.dc.DrawRectanglePointSize((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) *************** *** 478,482 **** if self.startName in self.components: if self.movingComponent: ! self.dc.DrawRectangle((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) self.components[self.startName].position = (self.lastPosition[0], self.lastPosition[1]) --- 478,482 ---- if self.startName in self.components: if self.movingComponent: ! self.dc.DrawRectanglePointSize((self.lastPosition[0], self.lastPosition[1]), (self.startSize[0], self.startSize[1])) self.components[self.startName].position = (self.lastPosition[0], self.lastPosition[1]) |