# Path: pytripgui/view/qt_gui.py
# class ContouringDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(ContouringDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'contouring_dialog.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowStaysOnTopHint)
# 
#         self.setModal(True)
# 
#         self.button_box.button(QDialogButtonBox.No).clicked.connect(self.reject)


from PyQt5.QtWidgets import QApplication, QDialog, QDialogButtonBox
from pytripgui.view.qt_gui import ContouringDialog
        self._initial_warning = "This may take a while - there are {} VOIs, " \
                                "but it will speed up viewing VOI contours.".format(voi_number)
        self._before_calculation = "Getting ready..."
        self._progress_message = "Precalculating contours for VOI: \n{name} ({current}/{total})"
        self._time_of_calc = "{label}: {elapsed_time:.2f} seconds"
        self._calculation_warning = "This may take a while..."
        self._finish_message = "Precalculating complete!"

    def _set_progress_label_text(self, text):
        self._ui.progress_label.setText(text)

    def _set_warning_label_text(self, text):
        self._ui.warning_label.setText(text)

    def _set_window_title(self, title):
        self._ui.setWindowTitle(title)

    def show(self):
        self._set_progress_label_text(self._initial_prompt)
        self._set_warning_label_text(self._initial_warning)
        self._ui.show()
        # we need to process events to let UI init take effect
        QApplication.processEvents()

    def _buttons_set_enabled(self, enabled):
        self._ui.button_box.setEnabled(enabled)

    def _set_buttons(self, flags):
        self._ui.button_box.setStandardButtons(flags)


# Path: pytripgui/view/qt_gui.py
# class ContouringDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(ContouringDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'contouring_dialog.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowStaysOnTopHint)
# 
#         self.setModal(True)
# 
#         self.button_box.button(QDialogButtonBox.No).clicked.connect(self.reject)


# Path: pytripgui/contouring_vc/contouring_view.py
from PyQt5.QtWidgets import QApplication, QDialog, QDialogButtonBox
from pytripgui.view.qt_gui import ContouringDialog

        self._initial_warning = "This may take a while - there are {} VOIs, " \
                                "but it will speed up viewing VOI contours.".format(voi_number)
        self._before_calculation = "Getting ready..."
        self._progress_message = "Precalculating contours for VOI: \n{name} ({current}/{total})"
        self._time_of_calc = "{label}: {elapsed_time:.2f} seconds"
        self._calculation_warning = "This may take a while..."
        self._finish_message = "Precalculating complete!"

    def _set_progress_label_text(self, text):
        self._ui.progress_label.setText(text)

    def _set_warning_label_text(self, text):
        self._ui.warning_label.setText(text)

    def _set_window_title(self, title):
        self._ui.setWindowTitle(title)

    def show(self):
        self._set_progress_label_text(self._initial_prompt)
        self._set_warning_label_text(self._initial_warning)
        self._ui.show()
        # we need to process events to let UI init take effect
        QApplication.processEvents()

    def _buttons_set_enabled(self, enabled):
        self._ui.button_box.setEnabled(enabled)

    def _set_buttons(self, flags):
        self._ui.button_box.setStandardButtons(flags)


    def update_accepted(self):