# sec_interp.gui.legend_widget module

Legend Widget Module.

class sec_interp.gui.legend_widget.LegendWidget(*args: Any, **kwargs: Any)

  Bases: `QWidget`

  Widget to display the geological legend over the map canvas.

  eventFilter(obj: qgis.PyQt.QtCore.QObject, event: qgis.PyQt.QtCore.QEvent) → bool

    Handle parent resize events.

  update_legend(renderer: Renderer) → None

    Update legend with data from renderer.

  paintEvent(event: qgis.PyQt.QtCore.QEvent) → None

    Handle paint event to draw the legend.