<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Il 11/05/2023 11:05, Jacky Volpes via
      QGIS-Developer ha scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6a2e0bcb-b782-3026-3b91-404c5291bc1a@oslandia.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <font face="Ubuntu">Hello,<br>
        <br>
        You can try <a moz-do-not-send="true"
href="https://api.qgis.org/api/classQgsVectorLayerProperties.html#ae4fe88fd37cdac13ee710bfcc7812799">this
          method</a>, available in python bindings from 3.30:<br>
        <br>
        props = QgsVectorLayerProperties(iface.mapCanvas(),
        iface.messageBar(), iface.activeLayer())<br>
        props.loadStyle() or props.saveStyleAs()<br>
        <br>
        Regards,<br>
        Jacky Volpes<br>
        <br>
        <br>
      </font><br>
      <div class="moz-cite-prefix">Le 11/05/2023 à 07:21, Giulio Fattori
        via QGIS-Developer a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:0de5433c-efb3-2b45-62c1-a8aba63cca28@tin.it">Good
        morning <br>
        how can I recall and use the Load Style and Save Style forms
        from python code ? <br>
        <br>
        Many thanks for any support <br>
        <br>
        Giulio <br>
        <br>
        _______________________________________________ <br>
        QGIS-Developer mailing list <br>
        <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
          href="mailto:QGIS-Developer@lists.osgeo.org"
          moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a> <br>
        List info: <a class="moz-txt-link-freetext"
          href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
          moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
        <br>
        Unsubscribe: <a class="moz-txt-link-freetext"
          href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
          moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
        <br>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Jacky Volpes

Ingénieur SIG - Oslandia</pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <p>Exactly what I was looking for</p>
    <p>Regards, <br>
    </p>
    <p>Giulio<br>
    </p>
  </body>
</html>