Will do so. Thank you Alessandro!


On 21-09-18 15:32, Alessandro Pasotti wrote:
Hi Raymond,

confirmed, there is probably something broken in the bindings, please file a ticket.

On Fri, Sep 21, 2018 at 3:20 PM Raymond Nijssen <r.nijs...@terglobo.nl <mailto:r.nijs...@terglobo.nl>> wrote:

    Running this python script (in qgis 3.3):

    p = QgsProject.instance()
    lom = p.layoutManager()
    lo = lom.layoutByName('a4')
    item = lo.itemById('label_title')
    print(item)


    a few weeks ago, it outputed this:
    <qgis._core.QgsLayoutItemLabel object at 0x7fe90b6d0318>


    but today it outputs:
    <qgis._core.QgsLayoutItem object at 0x7fe90b6d0318>



    My next line is:

    item.setText('hello')

    which doesn't work anymore, because there is no setText() function on a
    QgsLayoutItem. Has anything changed recently? Does any one know a
    solution?

    Regards,
    Raymond
    _______________________________________________
    QGIS-Developer mailing list
    QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>
    List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
    Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



--
Alessandro Pasotti
w3: www.itopen.it <http://www.itopen.it>

--
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
The Netherlands
+31 (0) 6 25 31 49 83
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to