示例#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())
示例#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)
示例#3
0
 def __init__(self, widget: QWidget, title: str, id: Any):
     QMdiSubWindow.__init__(self)
     self._id = id
     self.setWidget(widget)
     self.setWindowTitle(title)
示例#4
0
 def __init__(self):
     QMdiSubWindow.__init__(self)
     self._quitCallbackList = []