<br><br><div class="gmail_quote">On Tue, May 14, 2013 at 7:02 PM, David J. Bakeman <span dir="ltr"><<a href="mailto:dbakeman@comcast.net" target="_blank">dbakeman@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<div>On 05/14/2013 02:56 PM, Etienne
Tourigny wrote:<br>
</div>
<blockquote type="cite"><br>
<br>
<div class="gmail_quote">On Tue, May 14, 2013 at 6:21 PM, David J.
Bakeman <span dir="ltr"><<a href="mailto:dbakeman@comcast.net" target="_blank">dbakeman@comcast.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font size="+1"><tt>Is
it possible to create a group within a group in python?<br>
<br>
<font size="+1">li = qgis.utils.iface.legendInterface()<br>
<font size="+1">g1 = li.addGroup("g1")</font><br>
<font size="+1">g2 = li.addGroup("g2",<font size="+1">
g2)<br>
</font></font></font></tt></font></div>
</blockquote>
<div><br>
</div>
<div>did you try this? </div>
<div><br>
</div>
<div>g2 = li.addGroup("g2", g1)</div>
</div>
</blockquote></div>
Sorry for the typo yes that is exactly what I tried. Does it work
for you?</div></blockquote><div><br></div><div>never tried... I guess it depends on your qgis version. This has been improved in 1.9 (upcoming 2.0), not sure how it works in 1.8</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im"><br>
<blockquote type="cite">
<div class="gmail_quote">
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><font size="+1"><tt><font size="+1"><font size="+1"><font size="+1"> <br>
<br>
<font size="+1">The above seems like it should
work but it doesn't.<br>
<br>
<font size="+1">Thanks.</font><br>
</font></font></font></font></tt></font> </div>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</div></div>
</blockquote></div><br>