On Thu, 7 Dec 2023 at 13:13, noshin prachi via QGIS-User <
qgis-user@lists.osgeo.org> wrote:
> Thank you Adam for your response. I have imported iface from from
> qgis.utils import iface. I am working in qgis environment. It is my
> first work with qgis and I am finding it difficult to
Thank you Adam for your response. I have imported iface from from
qgis.utils import iface. I am working in qgis environment. It is my first
work with qgis and I am finding it difficult to understand. Can you please
share where I am going wrong? Is there any other way to activate a layer
from
> While trying to activate with iface.setactivelayer I am facing an error.
The error is complaining that iface is None. Your code doesn't show
what value you assigned to this variable - where did you set iface and
what value did you set it to? I think you forgot to set it and that is
why you