Oh well, found it just a minute after sending this mail, sorry to bother you. Answer:
iface.actionAddFeature().trigger() On 21 June 2018 at 12:49, Adam Borczyk <[email protected]> wrote: > Hi all, > > I'm looking for a way to enable "Add polygon" tool from the editing > toolbar using PyQGIS (v3) - so the 4th icon from the left. This way when I > press a button in my plugin, I'd have a cursor ready to draw features, > instead of having to manually click the icon. I tried setting the map tool > to QgsMapToolAdvancedDigitizing, but it's not the way. > > > > Is there a way to do it? > > Best regards > Adam Borczyk >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
