Esempio n. 1
0
 def __init__(self):
     QMdiSubWindow.__init__(self)
     self.setWindowFlag(Qt.WindowMaximizeButtonHint, False)
     self.setLayout(QHBoxLayout())
     self.main_frame = EasyFrame()
     self.main_frame.setMouseTracking(True)
     super().layout().addWidget(self.main_frame)
     self.main_frame.setLayout(QGridLayout())
Esempio n. 2
0
    def __init__(self, empty: bool = False):
        QMdiSubWindow.__init__(self)
        self.setWindowFlag(Qt.WindowMaximizeButtonHint, False)
        if not empty:
            self.setLayout(QHBoxLayout())
            self.main_frame = EasyFrame()
            self.main_frame.setMouseTracking(True)
            super().layout().addWidget(self.main_frame)
            self.main_frame.setLayout(QGridLayout())
            self.layout = self.new_layout

            self._icon = QIcon(image_file_path + "rs_icon.png")
            self.setWindowIcon(self._icon)
Esempio n. 3
0
 def __init__(self, widget: QWidget, title: str, id: Any):
     QMdiSubWindow.__init__(self)
     self._id = id
     self.setWidget(widget)
     self.setWindowTitle(title)
Esempio n. 4
0
 def __init__(self):
     QMdiSubWindow.__init__(self)
     self._quitCallbackList = []