[Python-checkins] CVS: python/dist/src/Mac/Demo/textedit ped.py,1.6,1.6.4.1

Jack Jansen jackjansen@users.sourceforge.net
2001年7月29日 14:50:36 -0700


Update of /cvsroot/python/python/dist/src/Mac/Demo/textedit
In directory usw-pr-cvs1:/tmp/cvs-serv27742/Python/Mac/Demo/textedit
Modified Files:
 Tag: release21-maint
	ped.py 
Log Message:
These demos used silly refcon values when creating their windows. This effectuively caused Pythons automatic cleanup of windows on refcount reaching zero to be disabled.
Index: ped.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/textedit/ped.py,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -C2 -d -r1.6 -r1.6.4.1
*** ped.py	2001年04月25日 22:05:36	1.6
--- ped.py	2001年07月29日 21:50:34	1.6.4.1
***************
*** 20,24 ****
 		self.name = name
 		r = windowbounds(400, 400)
! 		w = Win.NewWindow(r, name, 1, 0, -1, 1, 0x55555555)
 		self.wid = w
 		x0, y0, x1, y1 = self.wid.GetWindowPort().portRect
--- 20,24 ----
 		self.name = name
 		r = windowbounds(400, 400)
! 		w = Win.NewWindow(r, name, 1, 0, -1, 1, 0)
 		self.wid = w
 		x0, y0, x1, y1 = self.wid.GetWindowPort().portRect

AltStyle によって変換されたページ (->オリジナル) /