Thanks Denis, this is close but not totally related.
I finally managed to activate the buttons but this is like vaudou magic to
me:
I create a memory layer, and triggers actionToggleEditing once, and then a
second time but only after having refreshed the canvas.. :
self.iface.setActiveLa
this might be related to this.
http://hub.qgis.org/issues/6782
Cheers,
Denis
On 30. 01. 14 11:43, Régis Haubourg wrote:
Well, it doesn't always work.
Anyone knows why startEditing() on a layer in Python does not activate all
labeling and editing buttons?
--
View this message in context:
Well, it doesn't always work.
Anyone knows why startEditing() on a layer in Python does not activate all
labeling and editing buttons?
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Labeling-toolbar-activating-signals-tp5100666p5100886.html
Sent from the Quantum GIS - D
Hi all,
answering to myself, Qgis requires a beginEditCommand to activate correctly
all editing tools:
self.iface.setActiveLayer(labelMapLayer )
labelLayer.startEditing()
self.iface.actionToggleEditing().setEnabled(True)
labelLayer.beginEditCommand("labeling action")
Régis
--
View this messag