Skip to content

Instantly share code, notes, and snippets.

@seozed
Last active December 28, 2017 07:20
Show Gist options
  • Save seozed/03b8caf074ab65edb3a2af50bc31726d to your computer and use it in GitHub Desktop.
Save seozed/03b8caf074ab65edb3a2af50bc31726d to your computer and use it in GitHub Desktop.
PYQT示例
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import *
# 打开文件对话框,
filename, filetype = QFileDialog.getOpenFileName(None, '选择文件', "", filter="txt (*.txt)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment