예제 #1
0
    def setup_ui(self, MainWidget):
        self.status = QStatusBar()
        self.right_widget = RightWidget()
        self.left_widget = LeftScrollArea()
        self.top_widget = TopWidget()
        self.right_layout = QVBoxLayout()
        self.left_layout = QVBoxLayout()
        self.top_layout = QHBoxLayout()
        self.show_container = QHBoxLayout()
        self.control_container = QHBoxLayout()
        self.layout = QVBoxLayout(MainWidget)

        self.set_widgets()
        self.set_layouts()
예제 #2
0
파일: views.py 프로젝트: whuhenry/FeelUOwn
    def setup_ui(self, MainWidget):
        self.status = StatusBar()
        self.right_widget = RightWidget()
        self.left_widget = LeftScrollArea()
        self.top_widget = TopWidget()

        self.progress_info = QProgressBar()

        self.right_layout = QVBoxLayout()
        self.left_layout = QVBoxLayout()
        self.top_layout = QHBoxLayout()
        self.show_container = QHBoxLayout()
        self.control_container = QHBoxLayout()
        self.layout = QVBoxLayout(MainWidget)

        self.set_widgets()
        self.set_layouts()
        self._alias_name()
예제 #3
0
    def __init__(self):
        super().__init__()

        self.left_widget = LeftWidget(self)
        self.right_widget = RightWidget(self)

        main_layout = QHBoxLayout()
        main_layout.addWidget(self.left_widget)

        # Right layout
        size = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
        size.setHorizontalStretch(1)
        self.right_widget.setSizePolicy(size)

        main_layout.addWidget(self.right_widget)

        # Set the layout to the QWidget
        self.setLayout(main_layout)