Monday, 23 December 2019

qgis - How to remove/disable a toolbar via python?


How do I remove or disable a toolbar e.g., Raster, programmatically using Python?



Answer



This one-liner will hide the raster toolbar from QGIS UI:


iface.rasterToolBar().setVisible(False)

No comments:

Post a Comment