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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...