|
From: Kevin A. <ka...@us...> - 2004-10-10 01:20:31
|
Update of /cvsroot/pythoncard/PythonCard/samples/ataxx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15974/samples/ataxx Modified Files: ataxx.py Log Message: added fileMode, fillColor, logicalCopyMode attributes to BitmapCanvas removed setFillMode, setFillColor, setCopyMode methods Index: ataxx.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/ataxx/ataxx.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ataxx.py 25 Aug 2004 20:45:41 -0000 1.3 --- ataxx.py 10 Oct 2004 01:20:20 -0000 1.4 *************** *** 169,182 **** else: color = 'blue' ! view.setFillColor(color) view.foregroundColor = 'black' center = (x * CELLWIDTH + CELLWIDTH / 2 + 1, y * CELLHEIGHT + CELLHEIGHT / 2 + 1) view.drawCircle(center, round((CELLWIDTH / 2.0) - 3)) elif state == BLOCK: ! view.setFillColor(BLOCKCOLOR) view.foregroundColor = BLOCKCOLOR view.drawRectangle((x * CELLWIDTH + 3, y * CELLHEIGHT + 3), (CELLWIDTH - 5, CELLHEIGHT - 5)) else: ! view.setFillColor(BOARDCOLOR) view.foregroundColor = BOARDCOLOR view.drawRectangle((x * CELLWIDTH + 1, y * CELLHEIGHT + 1), (CELLWIDTH - 2, CELLHEIGHT - 2)) --- 169,182 ---- else: color = 'blue' ! view.fillColor = color view.foregroundColor = 'black' center = (x * CELLWIDTH + CELLWIDTH / 2 + 1, y * CELLHEIGHT + CELLHEIGHT / 2 + 1) view.drawCircle(center, round((CELLWIDTH / 2.0) - 3)) elif state == BLOCK: ! view.fillColor = BLOCKCOLOR view.foregroundColor = BLOCKCOLOR view.drawRectangle((x * CELLWIDTH + 3, y * CELLHEIGHT + 3), (CELLWIDTH - 5, CELLHEIGHT - 5)) else: ! view.fillColor = BOARDCOLOR view.foregroundColor = BOARDCOLOR view.drawRectangle((x * CELLWIDTH + 1, y * CELLHEIGHT + 1), (CELLWIDTH - 2, CELLHEIGHT - 2)) |