<div dir="ltr"><div>Hi all,</div><div><br></div><div>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. <br></div><div><br></div><div><div><img src="cid:ii_jiof474h0_16421f0b40b0b9b4" width="488" height="60"><br></div><br></div><div>Is there a way to do it?</div><div><br></div><div>Best regards</div><div>Adam Borczyk</div>
</div>