Thanks Larry, this is exactly what I was looking for!<br><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 2:13 PM, Larry Shaffer <span dir="ltr">&lt;<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aaron,<br>
<div><div class="h5"><br>
On Mon, Apr 2, 2012 at 2:16 PM, SJWC GIS &lt;<a href="mailto:sjwcgis@gmail.com">sjwcgis@gmail.com</a>&gt; wrote:<br>
&gt; Hello all,<br>
&gt;<br>
&gt; I&#39;m creating a qgis python plugin.  One of the functions of the plugin is to<br>
&gt; customize the qgis interface by turning off a few toolbars.  For most<br>
&gt; toolbars, this isn&#39;t a problem, but for some reason I can&#39;t find a way to<br>
&gt; shut off the &quot;Label&quot; toolbar.  For most toolbars, the following statements<br>
&gt; are working...<br>
&gt;<br>
&gt; self.iface.digitizeToolBar().setVisible(False)<br>
&gt;<br>
&gt; But I can&#39;t find a labelToolBar() object that I can do this operation with.<br>
&gt;  Does anyone have any guidance on why this is different?  I&#39;m not noticing<br>
&gt; any plugins that might be influencing this...  Thanks!<br>
<br>
</div></div>Seems there is no method in the QgisInterface class for accessing the<br>
new label toolbar yet.<br>
<br>
Try...<br>
<br>
    iface.mainWindow().findChild(QToolBar,&quot;mLabelToolBar&quot;).setVisible(False)<br>
<br>
I found the object name for the label toolbar using:<br>
<br>
    toolbars = iface.mainWindow().findChildren(QToolBar)<br>
<br>
    for toolbar in toolbars:<br>
        print toolbar.objectName()<br>
<br>
Which returned this on my QGIS setup:<br>
<br>
    mFileToolBar mLayerToolBar mDigitizeToolBar<br>
mAdvancedDigitizeToolBar mMapNavToolBar mAttributesToolBar<br>
mPluginToolBar mHelpToolBar mRasterToolBar mLabelToolBar OpenStreetMap<br>
<br>
<br>
There&#39;s probably a more direct solution than the &#39;findChild()&#39; method.<br>
<br>
Regards,<br>
<br>
Larry Shaffer<br>
Dakota Cartography<br>
Black Hills, South Dakota<br>
</blockquote></div><br>