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