QFileDialog.getSaveFileName错误

时间:2018-07-15 11:24:54

标签: python python-3.x pyqt5

我正在尝试使用QFileDialog.getSaveFileName(),但是python总是给我多数民众赞成的错误

filename,_ = QFileDialog.getSaveFileName("Save Files",self.absoutput,"Images (*.bmp *.tga)")
TypeError: getSaveFileName(parent: QWidget = None, caption: str = '', directory: str = '', filter: str = '', initialFilter: str = '', options: Union[QFileDialog.Options, QFileDialog.Option] = 0): argument 1 has unexpected type 'Ui_MainWindow'

我不知道为什么。 也许有人吗?

0 个答案:

没有答案