Re: [Qgis-developer] Labeling toolbar activating signals?

2014-01-31 Thread Régis Haubourg
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

Re: [Qgis-developer] Labeling toolbar activating signals?

2014-01-30 Thread Denis Rouzaud
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:

Re: [Qgis-developer] Labeling toolbar activating signals?

2014-01-30 Thread Régis Haubourg
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

Re: [Qgis-developer] Labeling toolbar activating signals?

2014-01-30 Thread Régis Haubourg
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