프로젝트

일반

사용자정보

개정판 7d8b60dc

ID7d8b60dcedc98e9d21d7c89e2e6395e7986f0626
상위 903dd7f5
하위 3616c8f6

함의성이(가) 약 6년 전에 추가함

issue #655: modified time format change

차이점 보기:

DTI_PID/DTI_PID/TrainingImageListDialog.py
1 1
import sys
2
import os, time, subprocess, ctypes
2
import os, time, subprocess, ctypes, datetime
3 3
from ctypes import wintypes
4 4
_GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW
5 5
_GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD]
......
94 94
                    boxName = data.replace('.png', '.boxS')
95 95
                    if adata.find(boxName) is not -1:
96 96
                        boxPath = os.path.join(project.getTrainingFilePath(), boxName)
97
                        modifiedTime = time.ctime(os.path.getmtime(boxPath))
97
                        modifiedTime = str(datetime.datetime.strptime(time.ctime(os.path.getmtime(boxPath)), "%a %b %d %H:%M:%S %Y"))
98 98
                        self.ui.tableWidgetList.setItem(row, 2, QTableWidgetItem(modifiedTime))
99 99
                        break
100 100
                    else:
......
242 242
                    maxLineH = preMaxLineH
243 243
                    lineW = areaW
244 244
                    totalHeight += maxLineH
245
                    maxLineH = areaH ##sung
245
                    maxLineH = areaH
246 246
            totalHeight += maxLineH
247 247
            totalSeedHeight = totalHeight
248 248
            #print('total area real : ' + str(totalBaseWidth * totalSeedHeight) +', total width : ' + str(totalBaseWidth) + ', total height : ' + str(totalHeight) + ', ratio : ' + str(totalHeight / totalBaseWidth))

내보내기 Unified diff

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