From: Kevin A. <ka...@us...> - 2004-09-28 03:13:06
|
Update of /cvsroot/pythoncard/PythonCard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18803/components Modified Files: bitmapcanvas.py Log Message: added enableAutoRefresh, changed 0/1 to False/True Index: bitmapcanvas.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/components/bitmapcanvas.py,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** bitmapcanvas.py 13 May 2004 02:40:24 -0000 1.42 --- bitmapcanvas.py 28 Sep 2004 03:12:55 -0000 1.43 *************** *** 396,400 **** return self._bufImage.GetPixelPoint(xy) ! def refresh(self): dc = wx.ClientDC(self) dc.BlitPointSize((0, 0), (self._size[0], self._size[1]), self._bufImage, (0, 0)) --- 396,402 ---- return self._bufImage.GetPixelPoint(xy) ! def refresh(self, enableAutoRefresh=False): ! if enableAutoRefresh: ! self.autoRefresh = True dc = wx.ClientDC(self) dc.BlitPointSize((0, 0), (self._size[0], self._size[1]), self._bufImage, (0, 0)) |