pyqt的clicked.connect如何传递参数

  ui.pushButton_2.clicked.connect(lambda:wenjian(xiaoxi_window))
def wenjian(win):
        from PyQt5.QtWidgets import QFileDialog
        files, filetype = QFileDialog.getOpenFileNames(None, "打开")
        win.show()
posted @ 2023-05-14 09:08  祥瑞哈哈哈  阅读(715)  评论(0编辑  收藏  举报