[Qgis-developer] iface.addToolBar but no iface.removeToolBar

Rouzaud Denis denis.rouzaud at gmail.com
Thu Feb 6 12:55:16 PST 2014


Hi,

I have a toolbar in a plugin too.
I can remove the toolbar using:
del self.toolBar

Cheers,

Denis


On 06 Feb 2014, at 21:51, Richard Duivenvoorde <rdmailings at duif.net> wrote:

> Hi devs,
> 
> python iface has a method addToolBar, to add a toolbar with buttons.
> But there is no way to remove the toolbar.
> 
> I've created a toolbar, with proper unload function. So disabling the
> plugin removes all from menu's, but I cannot remove the toolbar.
> Which would be ok, if not a second one pops up when you enable the
> plugin again.
> 
> Created an issue for it: http://hub.qgis.org/issues/9504
> 
> Would this be a bug or a feature ( :-)
> 
> Regards,
> 
> Richard Duivenvoorde
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list