[Qgis-developer] problem in hiding toolbar in qgis version 1.7

Tim Sutton lists at linfiniti.com
Sun Sep 18 16:54:03 EDT 2011


Hi

On Mon, Sep 12, 2011 at 8:48 AM, Ankur Sinha
<vicky.pydeveloper at gmail.com> wrote:
> hello everyone,
> I am getting problem in hiding the toolbars of the qgis.
> code I am writting is not giving the error also..
>
> firstly I have used
> **********************************
> fileTB = self.iface.fileToolBar()
> fileTB.setVisible(False)
> ************************************
>
> then i tried to remove
> **********************************************************
> fileTB = self.iface.fileToolBar()
> i = self.iface.mainWindow().removeToolBar(fileTB)
> **********************************************************
> but not got any output..
>

>From the console this works:

>>> fileTB = qgis.utils.iface.fileToolBar()
>>> qgis.utils.iface.mainWindow().removeToolBar(fileTB)

Regards

Tim


> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list