[Python-checkins] python/dist/src/Mac/Demo/textedit ped.py,1.9,1.10

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年11月29日 16:01:54 -0800


Update of /cvsroot/python/python/dist/src/Mac/Demo/textedit
In directory sc8-pr-cvs1:/tmp/cvs-serv20028/Demo/textedit
Modified Files:
	ped.py 
Log Message:
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
Index: ped.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/textedit/ped.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ped.py	31 Dec 2001 15:02:56 -0000	1.9
--- ped.py	30 Nov 2002 00:01:21 -0000	1.10
***************
*** 22,26 ****
 		w = Win.NewWindow(r, name, 1, 0, -1, 1, 0)
 		self.wid = w
! 		x0, y0, x1, y1 = self.wid.GetWindowPort().portRect
 		x0 = x0 + 4
 		y0 = y0 + 4
--- 22,26 ----
 		w = Win.NewWindow(r, name, 1, 0, -1, 1, 0)
 		self.wid = w
! 		x0, y0, x1, y1 = self.wid.GetWindowPort().GetPortBounds()
 		x0 = x0 + 4
 		y0 = y0 + 4
***************
*** 88,93 ****
 
 	def do_update(self, wid, event):
! 		Qd.EraseRect(wid.GetWindowPort().portRect)
! 		self.ted.TEUpdate(wid.GetWindowPort().portRect)
 		self.updatescrollbars()
 		
--- 88,93 ----
 
 	def do_update(self, wid, event):
! 		Qd.EraseRect(wid.GetWindowPort().GetPortBounds())
! 		self.ted.TEUpdate(wid.GetWindowPort().GetPortBounds())
 		self.updatescrollbars()
 		
***************
*** 351,355 ****
 			self.active.do_idle()
 		else:
! 			Qd.SetCursor(Qd.qd.arrow)
 
 def main():
--- 351,355 ----
 			self.active.do_idle()
 		else:
! 			Qd.SetCursor(Qd.GetQDGlobalsArrow())
 
 def main():

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