프로젝트

일반

사용자정보

개정판 16666ab8

ID16666ab838d2b60d76b7811bafc208d671748ce4
상위 514aa518
하위 ecd3b313

함의성이(가) 5년 이상 전에 추가함

issue #000: sym attr sorted by y coor as defualt

Change-Id: I14dfbe0215a4f8eab15d413374d109747fec81da

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
164 164
        from EngineeringTextItem import QEngineeringTextItem
165 165

  
166 166
        res = []
167
        for text in [x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)]:
167
        
168
        for text in sorted([x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)], key=lambda attr: attr.loc[1]):
168 169
            consumed = False
169 170
            for key in list(self.attrs.keys()):
170 171
                if key.AssocItem and key.AssocItem is text:
DTI_PID/DTI_PID/Shapes/EngineeringInstrumentItem.py
38 38
            appDocData = AppDocData.instance()
39 39
            QEngineeringInstrumentItem.INST_COLUMN_LIST = appDocData.getColNames('INSTRUMENT_DATA_LIST')
40 40

  
41
    def texts(self):
42
        """
43
        return text type of labels
44
        """
45
        from EngineeringTextItem import QEngineeringTextItem
46

  
47
        res = []
48
        for text in sorted([x for x in self.associations() if issubclass(type(x), QEngineeringTextItem)], key=lambda attr: attr.loc[1]):
49
            consumed = False
50
            for key in list(self.attrs.keys()):
51
                if key.AssocItem and key.AssocItem is text:
52
                    consumed = True
53
            if not consumed:
54
                res.append(text)
55

  
56
        return res
57

  
58 41
    '''
59 42
        @brief  getter of measured variable code
60 43
        @author humkyung

내보내기 Unified diff

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