src/eric7/Graphics/ApplicationDiagramBuilder.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10704
27d21e5163b8
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
411 AssociationType.IMPORTS, 411 AssociationType.IMPORTS,
412 colors=self.umlView.getDrawingColors(), 412 colors=self.umlView.getDrawingColors(),
413 ) 413 )
414 self.scene.addItem(assoc) 414 self.scene.addItem(assoc)
415 415
416 def parsePersistenceData(self, version, data): # noqa: U100 416 def parsePersistenceData(self, _version, data):
417 """ 417 """
418 Public method to parse persisted data. 418 Public method to parse persisted data.
419 419
420 @param version version of the data 420 @param _version version of the data (unused)
421 @type str 421 @type str
422 @param data persisted data to be parsed 422 @param data persisted data to be parsed
423 @type str 423 @type str
424 @return flag indicating success 424 @return flag indicating success
425 @rtype bool 425 @rtype bool
461 return { 461 return {
462 "project_name": self.project.getProjectName(), 462 "project_name": self.project.getProjectName(),
463 "no_modules": self.noModules, 463 "no_modules": self.noModules,
464 } 464 }
465 465
466 def fromDict(self, version, data): # noqa: U100 466 def fromDict(self, _version, data):
467 """ 467 """
468 Public method to populate the class with data persisted by 'toDict()'. 468 Public method to populate the class with data persisted by 'toDict()'.
469 469
470 @param version version of the data 470 @param _version version of the data (unused)
471 @type str 471 @type str
472 @param data dictionary containing the persisted data 472 @param data dictionary containing the persisted data
473 @type dict 473 @type dict
474 @return tuple containing a flag indicating success and an info 474 @return tuple containing a flag indicating success and an info
475 message in case the diagram belongs to a different project 475 message in case the diagram belongs to a different project

eric ide

mercurial