diff engine/extensions/pychan/widgets/layout.py @ 341:3a268cf93752

Fixed string representation for pychan.Spacer.
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 25 Aug 2009 00:09:05 +0000
parents 48c99636453e
children dfd48d49c044
line wrap: on
line diff
--- a/engine/extensions/pychan/widgets/layout.py	Mon Aug 24 23:08:53 2009 +0000
+++ b/engine/extensions/pychan/widgets/layout.py	Tue Aug 25 00:09:05 2009 +0000
@@ -281,10 +281,10 @@
 		self.size = 0
 
 	def __str__(self):
-		return "Spacer(parent.name='%s')" % getattr(self.__parent,'name','None')
+		return "Spacer(parent.name='%s')" % getattr(self.parent,'name','None')
 
 	def __repr__(self):
-		return "<Spacer(parent.name='%s') at %x>" % (getattr(self.__parent,'name','None'),id(self))
+		return "<Spacer(parent.name='%s') at %x>" % (getattr(self.parent,'name','None'),id(self))
 
 	def _getSize(self):
 		self.size = self._size