我正在尝试使用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'
我不知道为什么。 也许有人吗?