Forked from HYCAR-Hydro / airGR
Source project has a limited visibility.
ASubWindow.py 488 bytes
# -*- coding: utf-8 -*-

from PyQt5.QtWidgets import (
    QMainWindow, QApplication, QDesktopWidget,
    QMdiArea, QMdiSubWindow, QDialog,
    QPushButton
)
from PyQt5.uic import loadUi


# class ASubWindow(QMdiSubWindow):
#     def __init__(self, ui="error"):
#         super(ASubWindow, self).__init__()
#         loadUi(f"ui/{ui}.ui", self)

class ASubWindow(QDialog):
    def __init__(self, ui="error"):
        super(ASubWindow, self).__init__()
        loadUi(f"ui/{ui}.ui", self)