<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Strange, I thought I had already tried that.</p>
    <p>Thanks!<br>
    </p>
    <div class="moz-cite-prefix">On 23/05/23 15:47, David Strip wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:716038af-0faa-632a-f3d6-cb132f70c293@stripfamily.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">On 5/22/2023 7:44 PM, Patrick Dunford
        via QGIS-User wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:671295dd-ae7c-8578-2b4d-b4fa02b6139e@gmail.com"><br>
        extentGroup = root.findGroup(extentGroupName) <br>
        extentLayers = extentGroup.children() <br>
        for extentLayer in extentLayers: <br>
            if extentLayer.itemVisibilityChecked: <br>
                print (extentLayer.name()) </blockquote>
      <br>
      shouldn't that be <br>
           if extentLayer.itemVisibilityChecked<span
        style="background-color: rgb(255, 255, 0);">()</span>:   <br>
      (note the addition of parens after the method name).<br>
    </blockquote>
  </body>
</html>