browser_plugin_queue.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:persepolis 作者: persepolisdm 项目源码 文件源码
def changeFolder(self, button):
        fname = QFileDialog.getExistingDirectory(
            self, 'Select a directory', download_path)

        if fname:
            # Returns pathName with the '/' separators converted to separators that are appropriate for the underlying operating system.
            # On Windows, toNativeSeparators("c:/winnt/system32") returns
            # "c:\winnt\system32".
            fname = QDir.toNativeSeparators(fname)

        if os.path.isdir(fname):
            self.download_folder_lineEdit.setText(fname)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号