잡다/파이썬
-
PyQt5를 이용하여 파일 경로를 디렉터리로 선택하기잡다/파이썬 2020. 11. 3. 23:33
class FilePath(QDialog): def __init__(self): super().__init__() self.title = 'File Path' self.left = 10 self.top = 10 self.width = 640 self.height = 480 self.initUI() def initUI(self): self.setWindowTitle(self.title) self.setGeometry(self.left, self.top, self.width, self.height) def directory_select(self): options = QFileDialog.Options() directory_path = QFileDialog.getExistingDirectory(self, "s..