# Path: pytripgui/view/qt_gui.py
# class LoadingFileDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(LoadingFileDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'loading_file_dialog.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowStaysOnTopHint)
# 
#         self.setModal(True)
# 
#         self.info_label.setAlignment(Qt.AlignCenter)
#         self.ok_button.accepted.connect(self.accept)


from PyQt5.QtWidgets import QApplication, QDialog
from pytripgui.view.qt_gui import LoadingFileDialog

#!/usr/bin/python
# -*- coding: utf-8 -*-


class LoadingFileView:
    def __init__(self, parent=None, window_title=None,
                 progress_message=None, finish_message=None):
        # define default text strings
        if not window_title:
            window_title = "Loading..."
        if not progress_message:
            progress_message = "Loading, please wait..."
        if not finish_message:
            finish_message = "Loading complete."

        self._ui: QDialog = LoadingFileDialog(parent)

        # set window text
        self.set_window_title(window_title)

# Path: pytripgui/view/qt_gui.py
# class LoadingFileDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None):
#         super(LoadingFileDialog, self).__init__(parent)
#         ui_path = os.path.join(current_directory, 'loading_file_dialog.ui')
#         uic.loadUi(ui_path, self)
# 
#         self.setWindowFlags(Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint | Qt.WindowStaysOnTopHint)
# 
#         self.setModal(True)
# 
#         self.info_label.setAlignment(Qt.AlignCenter)
#         self.ok_button.accepted.connect(self.accept)


# Path: pytripgui/loading_file_vc/loading_file_view.py
from PyQt5.QtWidgets import QApplication, QDialog
from pytripgui.view.qt_gui import LoadingFileDialog

#!/usr/bin/python
# -*- coding: utf-8 -*-


class LoadingFileView:
    def __init__(self, parent=None, window_title=None,
                 progress_message=None, finish_message=None):
        # define default text strings
        if not window_title:
            window_title = "Loading..."
        if not progress_message:
            progress_message = "Loading, please wait..."
        if not finish_message:
            finish_message = "Loading complete."

        self._ui: QDialog = LoadingFileDialog(parent)

        # set window text
        self.set_window_title(window_title)

        self.set_info_label_text(progress_message)
