changeset 641 | e9295622ce9b |
parent 634 | cc3335911c01 |
--- a/graphics/LD_Objects.py Thu Feb 02 16:12:26 2012 +0100 +++ b/graphics/LD_Objects.py Tue Feb 07 19:12:25 2012 +0100 @@ -152,7 +152,7 @@ for connect in self.Connectors: connect_pos = connect.GetRelPosition() connect.SetPosition(wx.Point(connect_pos.x, connect_pos.y - miny)) - self.Connectors.sort(lambda x, y: x.Pos.y.__cmp__(y.Pos.y)) + self.Connectors.sort(lambda x, y: cmp(x.Pos.y, y.Pos.y)) maxy = 0 for connect in self.Connectors: connect_pos = connect.GetRelPosition()