프로젝트

일반

사용자정보

개정판 22adf874

ID22adf874f656882f1a529603162df2301d88954a
상위 1b0802fb
하위 6211dd0a, c5463994

백흠경이(가) 5년 이상 전에 추가함

issue #563: treating 3-way valve when line no tracing

Change-Id: I4b1cacb6c2fb4b8ecc9f346da483eceb393251ad

차이점 보기:

DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
52 52
        # attributeType uid
53 53
        self.attribute = ''
54 54
        self._properties = {SymbolProp(None, 'Supplied By', 'String'):None}
55
        self.supplied_by = ''
56 55
        
57 56
        self.setAcceptDrops(True)
58 57
        self.setAcceptHoverEvents(True)
......
348 347
    def is_connected(self, item, at=QEngineeringAbstractItem.CONNECTED_AT_PT):
349 348
        """ check if given item is connected to self """
350 349

  
351
        _connectors = [connector for connector in self.connectors if (connector.connectedItem == item and connector._connected_at == at)]
350
        _connectors = [connector for connector in self.connectors if (connector.connectedItem == item and (connector._connected_at == at if at else True))]
352 351
        return len(_connectors) > 0
353 352

  
354 353
    '''

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)