src/eric7/Graphics/AssociationItem.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
10 import enum 10 import enum
11 11
12 from PyQt6.QtCore import QLineF, QPointF, QRectF 12 from PyQt6.QtCore import QLineF, QPointF, QRectF
13 from PyQt6.QtWidgets import QGraphicsItem 13 from PyQt6.QtWidgets import QGraphicsItem
14 14
15 from eric7 import Utilities 15 from eric7 import Globals
16 from eric7.EricGraphics.EricArrowItem import EricArrowItem, EricArrowType 16 from eric7.EricGraphics.EricArrowItem import EricArrowItem, EricArrowType
17 17
18 18
19 class AssociationType(enum.Enum): 19 class AssociationType(enum.Enum):
20 """ 20 """
594 elif key == "dst": 594 elif key == "dst":
595 dst = int(value) 595 dst = int(value)
596 elif key == "type": 596 elif key == "type":
597 assocType = AssociationType(int(value)) 597 assocType = AssociationType(int(value))
598 elif key == "topToBottom": 598 elif key == "topToBottom":
599 topToBottom = Utilities.toBool(value) 599 topToBottom = Globals.toBool(value)
600 600
601 return src, dst, assocType, topToBottom 601 return src, dst, assocType, topToBottom
602 602
603 def toDict(self): 603 def toDict(self):
604 """ 604 """

eric ide

mercurial