comparison 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
comparison
equal deleted inserted replaced
340:7e5717105212 341:3a268cf93752
279 self.min_size = 0 279 self.min_size = 0
280 self.max_size = 1000 280 self.max_size = 1000
281 self.size = 0 281 self.size = 0
282 282
283 def __str__(self): 283 def __str__(self):
284 return "Spacer(parent.name='%s')" % getattr(self.__parent,'name','None') 284 return "Spacer(parent.name='%s')" % getattr(self.parent,'name','None')
285 285
286 def __repr__(self): 286 def __repr__(self):
287 return "<Spacer(parent.name='%s') at %x>" % (getattr(self.__parent,'name','None'),id(self)) 287 return "<Spacer(parent.name='%s') at %x>" % (getattr(self.parent,'name','None'),id(self))
288 288
289 def _getSize(self): 289 def _getSize(self):
290 self.size = self._size 290 self.size = self._size
291 return self._size 291 return self._size
292 def _setSize(self,size): 292 def _setSize(self,size):