프로젝트

일반

사용자정보

개정판 018867e0

ID018867e06acf9c7f346a94c33f034cbcea2272cd
상위 ba0bca12
하위 ab7e6e6f

humkyung 이(가) 약 7년 전에 추가함

load recognition result file if exists when opening drawing file

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
282 282
        QMessageBox.about(self.graphicsView, "알림", "이미지를 선택하신 후 시도해주세요.")
283 283
        
284 284
    '''
285
        @brief  Open image drawing file and then display it
286
        @author humkyung
287
        @date   2018.??.??
288
        @history    18.04.23    Jeongwoo    Add AppDocData.instance().setCurrentPidSource
289
                    18.04.23    Jeongwoo    Add Store Set Current Pid Image on AppDocData
290
                    18.05.02    Jeongwoo    Add useDefaultCommand()
285
        @brief      Open image drawing file and then display it
286
        @author     humkyung
287
        @date       2018.??.??
288
        @history    18.04.23 Jeongwoo    Add AppDocData.instance().setCurrentPidSource
289
                    18.04.23 Jeongwoo    Add Store Set Current Pid Image on AppDocData
290
                    18.05.02 Jeongwoo    Add useDefaultCommand()
291
                    humkyung 2018.05.24 load recognition result file if exists
291 292
    '''
292 293
    def openImageDrawing(self, MainWindow):
293 294
        import random
......
301 302
                AppDocData.instance().setCurrentPidSource(Image.open(self.path))
302 303
                self.resultTreeWidget.setCurrentPID(baseName)
303 304

  
305
                path = os.path.join(AppDocData.instance().getCurrentProject().getTempPath(), os.path.splitext(baseName)[0] + '.xml')
306
                if os.path.isfile(path): self.loadRecognitionResult(path)
307

  
304 308
                # DEBUG
305 309
                '''
306 310
                if __debug__:

내보내기 Unified diff