diff -r c28db6f7616b -r d14ff9d7eb76 graphics/GraphicCommons.py --- a/graphics/GraphicCommons.py Wed Aug 16 12:57:52 2017 +0300 +++ b/graphics/GraphicCommons.py Wed Aug 16 13:01:13 2017 +0300 @@ -1381,7 +1381,7 @@ connector_free = (wire_nums <= 0) connector_max_used = ((wire_nums > 0) and self.OneConnected) if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"): - connector_max_used = False; + connector_max_used = False # connector is available for new connection connect = connector_free or not connector_max_used @@ -1389,8 +1389,8 @@ # Tests if the point given is near from the end point of this connector def TestPoint(self, pt, direction=None, exclude=True): - inside = False; - check_point = (not exclude) and (direction is None or self.Direction == direction); + inside = False + check_point = (not exclude) and (direction is None or self.Direction == direction) if check_point: # Calculate a square around the end point of this connector @@ -1400,7 +1400,7 @@ width = ANCHOR_DISTANCE * 2 + abs(self.Direction[0]) * CONNECTOR_SIZE height = ANCHOR_DISTANCE * 2 + abs(self.Direction[1]) * CONNECTOR_SIZE rect = wx.Rect(x, y, width, height) - inside = rect.InsideXY(pt.x, pt.y); + inside = rect.InsideXY(pt.x, pt.y) return inside