#include <AzCore/IO/Path/Path.h> AZStd::string pathString(%1.toUtf8()); AZ::IO::PathView pathView(pathString); QApplication* application = static_cast<QApplication*>(QApplication::instance()); cppSelf->initialize(application, pathView); This method is works in the same way as the cpp version, with the exception that the selected filter is returned in a tuple with the selected filename (filename, filter), rather than being stored in the filter argument." //Comment left in to prevent Shiboken including invalid code. //%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, &%5, %6); %RETURN_TYPE retval_ = %CPPSELF.GetSaveFileName_(%1, %2, %3, %4, &%5, %6); %PYARG_0 = PyTuple_New(2); PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_)); PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG5_TYPE](%5));