src/eric7/Graphics/PackageDiagramBuilder.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10704
27d21e5163b8
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
511 topToBottom=True, 511 topToBottom=True,
512 colors=self.umlView.getDrawingColors(), 512 colors=self.umlView.getDrawingColors(),
513 ) 513 )
514 self.scene.addItem(assoc) 514 self.scene.addItem(assoc)
515 515
516 def parsePersistenceData(self, version, data): # noqa: U100 516 def parsePersistenceData(self, _version, data):
517 """ 517 """
518 Public method to parse persisted data. 518 Public method to parse persisted data.
519 519
520 @param version version of the data 520 @param _version version of the data (unused)
521 @type str 521 @type str
522 @param data persisted data to be parsed 522 @param data persisted data to be parsed
523 @type str 523 @type str
524 @return flag indicating success 524 @return flag indicating success
525 @rtype bool 525 @rtype bool
556 ), 556 ),
557 } 557 }
558 558
559 return data 559 return data
560 560
561 def fromDict(self, version, data): # noqa: U100 561 def fromDict(self, _version, data):
562 """ 562 """
563 Public method to populate the class with data persisted by 'toDict()'. 563 Public method to populate the class with data persisted by 'toDict()'.
564 564
565 @param version version of the data 565 @param _version version of the data (unused)
566 @type str 566 @type str
567 @param data dictionary containing the persisted data 567 @param data dictionary containing the persisted data
568 @type dict 568 @type dict
569 @return tuple containing a flag indicating success and an info 569 @return tuple containing a flag indicating success and an info
570 message in case the diagram belongs to a different project 570 message in case the diagram belongs to a different project

eric ide

mercurial