equal
deleted
inserted
replaced
914 self.BoundingBox = wx.Rect(0, 0, 0, 0) |
914 self.BoundingBox = wx.Rect(0, 0, 0, 0) |
915 self.Pos = wx.Point(self.BoundingBox.x, self.BoundingBox.y) |
915 self.Pos = wx.Point(self.BoundingBox.x, self.BoundingBox.y) |
916 self.Size = wx.Size(self.BoundingBox.width, self.BoundingBox.height) |
916 self.Size = wx.Size(self.BoundingBox.width, self.BoundingBox.height) |
917 |
917 |
918 # Forbids to change the group position |
918 # Forbids to change the group position |
919 def SetPosition(x, y): |
919 def SetPosition(self, x, y): |
920 pass |
920 pass |
921 |
921 |
922 # Returns the position of this group |
922 # Returns the position of this group |
923 def GetPosition(self, exclude_wires=False): |
923 def GetPosition(self, exclude_wires=False): |
924 if exclude_wires: |
924 if exclude_wires: |
935 return 0, 0 |
935 return 0, 0 |
936 return posx, posy |
936 return posx, posy |
937 return self.BoundingBox.x, self.BoundingBox.y |
937 return self.BoundingBox.x, self.BoundingBox.y |
938 |
938 |
939 # Forbids to change the group size |
939 # Forbids to change the group size |
940 def SetSize(width, height): |
940 def SetSize(self, width, height): |
941 pass |
941 pass |
942 |
942 |
943 # Returns the size of this group |
943 # Returns the size of this group |
944 def GetSize(self): |
944 def GetSize(self): |
945 return self.BoundingBox.width, self.BoundingBox.height |
945 return self.BoundingBox.width, self.BoundingBox.height |
1638 wire.ConnectEndPoint(end_connector.GetPosition(), end_connector) |
1638 wire.ConnectEndPoint(end_connector.GetPosition(), end_connector) |
1639 return wire |
1639 return wire |
1640 return None |
1640 return None |
1641 |
1641 |
1642 # Forbids to change the wire position |
1642 # Forbids to change the wire position |
1643 def SetPosition(x, y): |
1643 def SetPosition(self, x, y): |
1644 pass |
1644 pass |
1645 |
1645 |
1646 # Forbids to change the wire size |
1646 # Forbids to change the wire size |
1647 def SetSize(width, height): |
1647 def SetSize(self, width, height): |
1648 pass |
1648 pass |
1649 |
1649 |
1650 # Moves and Resizes the element for fitting scaling |
1650 # Moves and Resizes the element for fitting scaling |
1651 def SetBestSize(self, scaling): |
1651 def SetBestSize(self, scaling): |
1652 if scaling is not None: |
1652 if scaling is not None: |