<filename>buildings/gui/menu_frame.py
# -*- coding: utf-8 -*-

import os.path

from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QFrame

from buildings.utilities.layers import LayerRegistry

# Get the path for the parent directory of this file.
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

FORM_CLASS, _ = uic.loadUiType(os.path.join(os.path.dirname(__file__), "menu_frame.ui"))


class MenuFrame(QFrame, FORM_CLASS):
    def __init__(self, dockwidget, parent=None):
        """Constructor."""
        super(MenuFrame, self).__init__(parent)
        self.setupUi(self)

        self.txt_dashboard.viewport().setAutoFillBackground(False)

        self.layer_registry = LayerRegistry()

<filename>buildings/gui/menu_frame.py
# -*- coding: utf-8 -*-

import os.path

from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QFrame

from buildings.utilities.layers import LayerRegistry

# Get the path for the parent directory of this file.
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

FORM_CLASS, _ = uic.loadUiType(os.path.join(os.path.dirname(__file__), "menu_frame.ui"))


class MenuFrame(QFrame, FORM_CLASS):
    def __init__(self, dockwidget, parent=None):
        """Constructor."""
        super(MenuFrame, self).__init__(parent)
        self.setupUi(self)

        self.txt_dashboard.viewport().setAutoFillBackground(False)

        self.layer_registry = LayerRegistry()

# -*- coding: utf-8 -*- # Get the path for the parent directory of this file. Constructor.