[Python-checkins] python/dist/src/Demo/tkinter/matt animation-w-velocity-ctrl.py, 1.2, 1.3 pong-demo-1.py, 1.2, 1.3

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Thu Feb 12 12:35:37 EST 2004


Update of /cvsroot/python/python/dist/src/Demo/tkinter/matt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21620/Demo/tkinter/matt

Modified Files:
	animation-w-velocity-ctrl.py pong-demo-1.py 
Log Message:
Replace backticks with repr() or "%r"

>From SF patch #852334.


Index: animation-w-velocity-ctrl.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/tkinter/matt/animation-w-velocity-ctrl.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** animation-w-velocity-ctrl.py	30 Jul 1996 18:56:31 -0000	1.2
--- animation-w-velocity-ctrl.py	12 Feb 2004 17:35:04 -0000	1.3
***************
*** 29,33 ****
  	velocity = self.speed.get()
  	str = float(velocity) / 1000.0
! 	str = `str` + "i"
  	self.draw.move("thing",  str, str)
  	self.after(10, self.moveThing)
--- 29,33 ----
  	velocity = self.speed.get()
  	str = float(velocity) / 1000.0
! 	str = "%ri" % (str,)
  	self.draw.move("thing",  str, str)
  	self.after(10, self.moveThing)

Index: pong-demo-1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/tkinter/matt/pong-demo-1.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pong-demo-1.py	30 Jul 1996 18:57:03 -0000	1.2
--- pong-demo-1.py	12 Feb 2004 17:35:04 -0000	1.3
***************
*** 40,44 ****
  	self.y = self.y + deltay
  
! 	self.draw.move(self.ball,  `deltax` + "i", `deltay` + "i")
  	self.after(10, self.moveBall)
  
--- 40,44 ----
  	self.y = self.y + deltay
  
! 	self.draw.move(self.ball,  "%ri" % deltax, "%ri" % deltay)
  	self.after(10, self.moveBall)
  




More information about the Python-checkins mailing list