# Path: awesometts/paths.py
# ICONS = os.path.join(ADDON, 'gui/icons')
# 
# Path: awesometts/gui/common.py
# class Label(QtWidgets.QLabel):
#     """Label with HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Label, self).__init__(*args, **kwargs)
#         self.setTextFormat(QtCore.Qt.PlainText)
# 
# class Note(Label):
#     """Label with wrapping enabled and HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Note, self).__init__(*args, **kwargs)
#         self.setWordWrap(True)
# 
# ICON = QtGui.QIcon(ICON_FILE)


import inspect
from PyQt5 import QtCore, QtWidgets, QtGui
from ..paths import ICONS
from .common import Label, Note, ICON
        self.setWindowTitle(
            title if "AwesomeTTS" in title
            else "AwesomeTTS: " + title
        )

    # UI Construction ########################################################

    def _ui(self):
        """
        Returns a vertical layout with a banner.

        Subclasses should call this method first when overriding so that
        all dialogs have the same banner.
        """

        layout = QtWidgets.QVBoxLayout()
        layout.addLayout(self._ui_banner())
        layout.addWidget(self._ui_divider(QtWidgets.QFrame.HLine))

        return layout

    def _ui_banner(self):
        """
        Returns a horizontal layout with some title text, a strecher,
        and version text.

        For subclasses, this method will be called automatically as part
        of the base class _ui() method.
        """


# Path: awesometts/paths.py
# ICONS = os.path.join(ADDON, 'gui/icons')
# 
# Path: awesometts/gui/common.py
# class Label(QtWidgets.QLabel):
#     """Label with HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Label, self).__init__(*args, **kwargs)
#         self.setTextFormat(QtCore.Qt.PlainText)
# 
# class Note(Label):
#     """Label with wrapping enabled and HTML disabled."""
# 
#     def __init__(self, *args, **kwargs):
#         super(Note, self).__init__(*args, **kwargs)
#         self.setWordWrap(True)
# 
# ICON = QtGui.QIcon(ICON_FILE)


# Path: awesometts/gui/base.py
import inspect
from PyQt5 import QtCore, QtWidgets, QtGui
from ..paths import ICONS
from .common import Label, Note, ICON

        self.setWindowTitle(
            title if "AwesomeTTS" in title
            else "AwesomeTTS: " + title
        )

    # UI Construction ########################################################

    def _ui(self):
        """
        Returns a vertical layout with a banner.

        Subclasses should call this method first when overriding so that
        all dialogs have the same banner.
        """

        layout = QtWidgets.QVBoxLayout()
        layout.addLayout(self._ui_banner())
        layout.addWidget(self._ui_divider(QtWidgets.QFrame.HLine))

        return layout

    def _ui_banner(self):
        """
        Returns a horizontal layout with some title text, a strecher,
        and version text.

        For subclasses, this method will be called automatically as part
        of the base class _ui() method.
        """


        title = Label(self._title)