I am developing a QGIS plugin in Python and I need some help to efficiently save my output layer to a CSV. I understand that by right-clicking on the layer and going to "Export -> Save features as" opens the window that enables me to save my output as a CSV. This window is shown below.
But I expect people who are new to QGIS (or GIS even) to use this tool and they might not be able to find this saving option straight away, hence thinking of adding that feature to the plugin itself. What I would ideally want is to bring up this inbuilt saving window (shown above) through my python code. So, when the user presses a button on the GUI, this window would come up straightaway. Does anyone have an idea on how to do this?
Maybe there is a processing algorithm of the form processing.runalg(appropriate arguments)
that would enable me to do this?