<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Guido,</p>
<p>You might get more replies on the <a href="https://qgis.org/en/site/getinvolved/mailinglists.html">QGIS developer list</a> for PyQGIS related questions. See <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></p>
<p>Andreas</p>
<p id="reply-intro">On 2020-10-12 16:37, Häfliger Guido wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<style type="text/css">@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

#replybody1 p.v1MsoNormal, #replybody1 li.v1MsoNormal, #replybody1 div.v1MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
#replybody1 a:link, #replybody1 span.v1MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
#replybody1 a:visited, #replybody1 span.v1MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
#replybody1 span.v1E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
#replybody1 .v1MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
#replybody1 div.v1WordSection1
        {page:WordSection1;}

@list l0
        {mso-list-id:1986928185;
        mso-list-type:hybrid;
        mso-list-template-ids:235589720 -520448064 134676483 134676485 134676481 134676483 134676485 134676481 134676483 134676485;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:�;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:�;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:�;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:�;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:�;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
#replybody1 ol
        {margin-bottom:0cm;}
#replybody1 ul
        {margin-bottom:0cm;}</style>
<div lang="DE-CH">
<div class="v1WordSection1">
<p class="v1MsoNormal"><span>Hi</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>I‘m developing a plugin which executes some updates of attributes on a loaded layer where are conditional formatting rules (full row) in the attribute table are defined. I want to apply the conditional formatting rules after the table-updates by python. It works if I close and open the attribute table by pyqgis but I only manage to close the attribute table in dock view. My questions:</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal" style="margin-left: 36.0pt; text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';">          </span></span></span><span>Is it possible to apply the conditional formatting rules by pyqgis without closing and opening the attribute table (loop over all rules and apply them)?</span></p>
<p class="v1MsoNormal" style="margin-left: 36.0pt; text-indent: -18.0pt; mso-list: l0 level1 lfo1;"><span><span style="mso-list: Ignore;">-<span style="font: 7.0pt 'Times New Roman';">          </span></span></span><span>How can I close an attribute table which is not in docked view by pyqgis?</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>Thanks for your help in advance</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">____________________________________________________</span><span style="font-size: 7.5pt; mso-fareast-language: DE-CH;"> </span></p>
<p class="v1MsoNormal"><span style="font-size: 7.5pt; mso-fareast-language: DE-CH;"><br /></span><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">Dipl. Ing. ETH Guido Häfliger</span><span style="font-size: 7.5pt; mso-fareast-language: DE-CH;"><br /></span><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">EDV/GIS-Spezialist</span><span style="font-size: 7.5pt; mso-fareast-language: DE-CH;"><br /></span><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">Tel. ++41 41 462 97 60</span><span style="mso-fareast-language: DE-CH;"><br /></span><u><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue; mso-fareast-language: DE-CH;"><a href="mailto:guido.haefliger@vogelwarte.ch" rel="noreferrer"><span style="color: blue;">guido.haefliger@vogelwarte.ch</span></a></span></u><span style="color: blue; mso-fareast-language: DE-CH;"><br /></span><u><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue; mso-fareast-language: DE-CH;"><a href="http://www.vogelwarte.ch/" target="_blank" rel="noopener noreferrer"><span style="color: blue;">www.vogelwarte.ch</span></a></span></u><span style="mso-fareast-language: DE-CH;"><br /></span><span style="font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;"><br /></span><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">Schweizerische Vogelwarte | Seerose 1 | CH-6204 Sempach | Schweiz</span></p>
<p class="v1MsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; mso-fareast-language: DE-CH;">Station ornithologique suisse | Seerose 1 | CH-6204 Sempach | Suisse <br />Stazione ornitologica svizzera | Seerose 1 | CH-6204 Sempach | Svizzera <br />Swiss Ornithological Institute | Seerose 1 | CH-6204 Sempach | Switzerland </span></p>
<p class="v1MsoNormal"> </p>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br /></p>

</body></html>