equal
deleted
inserted
replaced
90 self.RefreshConnectors() |
90 self.RefreshConnectors() |
91 |
91 |
92 # Forbids to select a power rail |
92 # Forbids to select a power rail |
93 def HitTest(self, pt, connectors=True): |
93 def HitTest(self, pt, connectors=True): |
94 if self.Parent.GetDrawingMode() == FREEDRAWING_MODE: |
94 if self.Parent.GetDrawingMode() == FREEDRAWING_MODE: |
95 return Graphic_Element.HitTest(self, pt, connectors) or self.TestConnector(pt, exclude=False) != None |
95 return Graphic_Element.HitTest(self, pt, connectors) or self.TestConnector(pt, exclude=False) is not None |
96 return False |
96 return False |
97 |
97 |
98 # Forbids to select a power rail |
98 # Forbids to select a power rail |
99 def IsInSelection(self, rect): |
99 def IsInSelection(self, rect): |
100 if self.Parent.GetDrawingMode() == FREEDRAWING_MODE: |
100 if self.Parent.GetDrawingMode() == FREEDRAWING_MODE: |