From: Kevin A. <ka...@us...> - 2004-07-28 07:12:16
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21040 Modified Files: graphic.py Log Message: fixed default empty bitmap size to be valid on all platforms Index: graphic.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/graphic.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** graphic.py 13 Apr 2004 17:55:04 -0000 1.14 --- graphic.py 28 Jul 2004 07:12:07 -0000 1.15 *************** *** 79,85 **** class Bitmap : ! def __init__(self, fileName='', size=(0, 0)): self._fileName = fileName ! self._size = size self._type = None self.loadFile() --- 79,91 ---- class Bitmap : ! def __init__(self, fileName='', size=(-1, -1)): self._fileName = fileName ! # KEA 2004-07-27 ! # Mac checks that the bitmap is Ok() so need ! # to use a valid size ! if (self._fileName == '') and (tuple(size) == (-1, -1)): ! self._size = (10, 10) ! else: ! self._size = size self._type = None self.loadFile() |