eric6/Graphics/ClassItem.py

changeset 8291
3d79b1e5bf3c
parent 8287
30eb7bc13d63
child 8295
3f5e8b0a338e
equal deleted inserted replaced
8290:6970128e3d71 8291:3d79b1e5bf3c
387 classAttributes) 387 classAttributes)
388 self.__createTexts() 388 self.__createTexts()
389 self.__calculateSize() 389 self.__calculateSize()
390 390
391 return True 391 return True
392
393 def toDict(self):
394 """
395 Public method to collect data to be persisted.
396
397 @return dictionary containing data to be persisted
398 @rtype dict
399 """
400 return {
401 "is_external": self.external,
402 "no_attributes": self.noAttrs,
403 "name": self.model.getName(),
404 "attributes": self.model.getInstanceAttributes(),
405 "methods": self.model.getMethods(),
406 "class_attributes": self.model.getClassAttributes(),
407 }

eric ide

mercurial