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