Hi On Mon, Sep 12, 2011 at 8:48 AM, Ankur Sinha <[email protected]> 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 > [email protected] > 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 ============================================== _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
