Message posté par : Yoann Lecomte
----------------------------------------
Bonjour,
En pyqgis, iface donne accès à tout les outils natifs de QGIS. Dans votre cas ce sont les
actions de sélection qui vous intéressent.
Voir la documentation (
https://qgis.org/pyqgis/3.2/gui/other/QgisInterface.html) et
notamment :
- actionSelect Returns the native select action.
- actionSelectFreehand Returns the native select freehand action.
- actionSelectPolygon Returns the native select polygon action.
- actionSelectRadius Returns the native select radius action.
- actionSelectRectangle Returns the native select rectangle action.
que vous pouvez appeler depuis un plugin:
-----------------
Code :
self.iface.actionSelect().trigger()
-----------------
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=364827#p364827
Pour y répondre : qgis_fr(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net