2

This is a duplicate of Launching Processing tool User Interface using PyQGIS. However, the answer provided is not correct for QGIS 3.4.1.

from processing.gui.CommanderWindow import CommanderWindow

results in a

ModuleNotFoundError: No module named 'processing.gui.CommanderWindow'

Anyone know the current syntax to launch a processing tool from pyqgis, so that I can call one from e.g. a plugin?

1

In qgis 3 this is:

 initial_params={}
 results = processing.execAlgorithmDialog('algorithm_id', initial_params)

The initial parameters argument can be used to specify the initial values to populate the dialog with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.