db 파일 처리하도록 추가만...(로직은 아직...)
This commit is contained in:
13
UI.py
13
UI.py
@@ -55,6 +55,8 @@ class MyApp(QMainWindow):
|
||||
|
||||
def MakeUI_Left(self):
|
||||
self.list_SrcPath = QListWidget()
|
||||
self.list_SrcPath.setMaximumHeight(400)
|
||||
self.list_SrcPath.setMaximumWidth(300)
|
||||
|
||||
btn_Add = QPushButton("Add", self)
|
||||
btn_Add.clicked.connect(self.on_click_SrcAdd)
|
||||
@@ -153,6 +155,17 @@ class MyApp(QMainWindow):
|
||||
item.setData(Qt.UserRole, pathFile)
|
||||
self.list_ArcList.addItem(item)
|
||||
|
||||
|
||||
# 데이터베이스 파일이 들어 있다면...
|
||||
if fileExt.lower() in [".db"]:
|
||||
# 이름은 폴더/DB 파일이름
|
||||
FolderName = util.GetParentDirName(pathFile, 1)
|
||||
ItemName = os.path.join(FolderName, filename)
|
||||
item = QListWidgetItem(ItemName)
|
||||
# 전체 경로를 따로 저장
|
||||
item.setData(Qt.UserRole, pathFile)
|
||||
self.list_ArcList.addItem(item)
|
||||
|
||||
# 이미지 파일이 들어있다면...
|
||||
if fileExt.lower() in [".jpg", ".webp", ".jpeg", ".png", ".gif"]:
|
||||
isImgIn = True
|
||||
|
||||
Reference in New Issue
Block a user